Skip to content

Instantly share code, notes, and snippets.

@hollance
hollance / StateVariableFilter.h
Created August 26, 2023 16:26
Cytomic SVF implementation in C++
#pragma once
#include <cmath>
/**
State variable filter (SVF), designed by Andrew Simper of Cytomic.
http://cytomic.com/files/dsp/SvfLinearTrapOptimised2.pdf
The frequency response of this filter is the same as of BZT filters.
@shu-yusa
shu-yusa / create_jwt.sh
Last active February 7, 2026 23:07
Generate private and public keys, and create JWT and JWKs
#!/bin/sh
## Requires openssl, nodejs, jq
header='
{
"kid": "12345",
"alg": "RS256"
}'
payload='
{
"iss": "https://example.com",

Konsole delete word

By Raymond Li (Raymo111) 29 August 2021

To map shortcuts like Ctrl+Bksp/Del to delete words backwards and forwards in Konsole:

  1. Go to Settings > Edit Current Profile... > Keyboard > Edit...`
  2. Edit (or add) the following key combos if they don't already exist:
Key Combination Output (Explanation)
Backspace-Ctrl \x7f Backspace without Ctrl should just delete the character before the cursor
Backspace+Ctrl \E\b Backspace with Ctrl should delete the word before the cursor. ^H should be encoded as \x08 (ascii control character code in hex) but Konsole converts that to \b, it's code for backspace.
@Artefact2
Artefact2 / README.md
Last active February 7, 2026 23:05
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggml-org/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@danmack
danmack / nix-alpine.org
Last active February 7, 2026 23:05
install NIX package manager on Alpine Linux

NIX Package Manager Install on Alpine Linux

System Information

  • alpine 3.17.1, 3.18, 3.19 and edge x86-64
  • multiple linux kernels worked 6.1.8-lts w/zfs and 6.6.8-lts
  • edge, testing apk repos enabled

Preparation

@korakot
korakot / record.py
Last active February 7, 2026 23:02
Record audio in Colab using getUserMedia({ audio: true })
# all imports
from IPython.display import Javascript
from google.colab import output
from base64 import b64decode
from io import BytesIO
!pip -q install pydub
from pydub import AudioSegment
RECORD = """
const sleep = time => new Promise(resolve => setTimeout(resolve, time))
name description
antigravity-quota
Check Antigravity API quota status for all configured Google accounts

Antigravity Quota Checker

Check your Antigravity API quota status using curl commands.

Prerequisites

  • Antigravity accounts configured in ~/.config/opencode/antigravity-accounts.json
  • curl and jq installed

Usage

@serif
serif / bwclean2.py
Last active February 7, 2026 22:47
Bitwarden Duplicate Entry Remover v2
#!/usr/bin/env python3
# updated 2023-11-27
# updated 2023-10-12
# updated 2021
# updated 2020
# created 2018
import sys
import hashlib
from urllib.parse import urlparse
@djangofan
djangofan / CreateDBAndUsersSQLServer.bat
Created September 27, 2012 03:35
Create DB and Users in MS SQL Server using Batch script
@ECHO off
SETLOCAL ENABLEDELAYEDEXPANSION
TITLE Create Databases And Users
::---------------------------------------------
:: Open source free use
:: Author: Jon Austen, Last Modified: 9/26/2012
::---------------------------------------------
ECHO *************************************************
@bgregwang04
bgregwang04 / Maho.sub.releases.md
Created January 3, 2021 04:44
魔穗字幕组 / Maho.sub 作品合集