Skip to content

Instantly share code, notes, and snippets.

View olegshulyakov's full-sized avatar

Oleg Shulyakov olegshulyakov

View GitHub Profile
@davidondrej
davidondrej / pi-openrouter-setup.md
Created April 6, 2026 13:16
making the default Pi setup simpler & easier

Here's the full setup to make Pi use OpenRouter by default, with your API key stored locally inside Pi's own config (no system-wide env var needed):


Step 1 — Create Pi's config directory (if it doesn't exist)

mkdir -p ~/.pi/agent
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active September 9, 2026 08:42
Conventional Commits Cheatsheet
@buttreygoodness
buttreygoodness / FLACConvert.md
Last active November 11, 2025 08:20
How to split FLAC files by cue and convert to ALAC on Mac OS X
  • Install required packages
brew install cuetools flac ffmpeg shntool
  • Split flac file by cue
$ shnsplit -o flac -f file.cue file.flac
@jdcrensh
jdcrensh / Base62.java
Last active October 25, 2025 18:48
Class to encode a string into base 62 (character set [a-zA-Z0-9]) with Java. A common use case is URL shortening.
public class Base62 {
public static final String ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
public static final int BASE = ALPHABET.length();
private Base62() {}
public static String fromBase10(int i) {
StringBuilder sb = new StringBuilder("");