Skip to content

Instantly share code, notes, and snippets.

@alexweberk
alexweberk / mlx_finetuning_gemma.ipynb
Last active May 11, 2024 20:40
MLX Fine-tuning Google Gemma
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tkrisztian95
tkrisztian95 / default.conf
Last active May 11, 2024 20:40
Nginx server JSON file as an API response
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www;
location /api/endpoint {
default_type application/json;
index apiResponse.json;
alias /var/www/;
}
// Pure addToCart() returns a new cart
// It does not mutate the original.
const addToCart = (cart, item, quantity) => {
const newCart = lodash.cloneDeep(cart);
newCart.items.push({
item,
quantity
});
return newCart;

Edit 2024-02-05:

The instructions below are outdated.

There is an official PR (#2027) for mouse functionality. You should use that rather than what is described below.

See comments [1, 2] below.

ZMK mouse support

@denji
denji / windows-keyboard-default-mode.md
Created September 29, 2020 00:21
Keyboard flags and indicators when start Windows 10

HKEY_USERS\.DEFAULT\Control Panel\Keyboard and edit the string value InitialKeyboardIndicators to one of the following values:

InitialKeyboardIndicators bitmask list:

  • 0 — turns off Scroll Lock, Num Lock, Caps Lock (default)
  • 1 — turn on Caps Lock
  • 2 — turn on Num Lock
  • 3 — turn on both Num Lock and Caps Lock
  • 4 — turn on Scroll Lock
  • 5 — turn on both Scroll Lock and Caps Lock
  • 6 — turn on both Scroll Lock and Num Lock
@Klerith
Klerith / configurar-node-ts.md
Last active May 11, 2024 20:36
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@taotao54321
taotao54321 / nesgenie.py
Created December 27, 2016 19:19
NES Game Genie encoder/decoder
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""NES Game Genie encoder/decoder.
Usage:
nesgenie enc <addr> <value> [cmp]
nesgenie dec <code>
"""
@mokoshalb
mokoshalb / Office_kms
Created July 4, 2019 05:36 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@agsemenov
agsemenov / uaquotes.json
Created May 11, 2024 19:29
Quotes List in JSON Format UA
{
"quotes": [
{
"quote": "Мені важко говорити про те, що важливо для мене. Мене можна побачити тільки в діях.",
"author": "Леся Українка"
},
{
"quote": "Найголовнішим є не відчуття щастя, а наше прагнення до щастя.",
"author": "Тарас Шевченко"
},
@lyshie
lyshie / config-deb-i386.json
Last active May 11, 2024 20:34
Scratch Desktop (Scratch 3.0 Offline Editor) on GNU/Linux
{
"src": "/tmp/scratch-desktop/",
"dest": "/tmp/",
"arch": "i386",
"icon": "/tmp/scratch-desktop/resources/Icon.png",
"categories": [
"Education"
]
}