Skip to content

Instantly share code, notes, and snippets.

View andrewrabert's full-sized avatar

Andrew Rabert andrewrabert

View GitHub Profile
@andrewrabert
andrewrabert / note.md
Last active March 17, 2026 03:36
compiler flag benchmarks: flac-1.5.0-1 (2026-03-16)

benchmarking flac and CFLAGS

CPU: AMD 5950X

source data

01 Lighthouse.flac
02 To Whom It May Concern.flac
03 Green Light.flac
04 Fire.flac
05 In Darkness.flac
@andrewrabert
andrewrabert / 2024-07-13.md
Created March 17, 2026 03:04
benchmarking flac and CFLAGS

benchmarking flac and CFLAGS

$ reencode-lossless .
( 1/13) ------- 06 - Fatamorgana.flac
( 2/13) ------- 13 - Set Me Free.flac
( 3/13) ------- 12 - Carpe Diem.flac
( 4/13) ------- 08 - Information Society.flac
( 5/13) ------- 11 - High on Pain.flac
( 6/13) ------- 09 - No Shuffle.flac
( 7/13) ------- 01 - Game of Life.flac
@andrewrabert
andrewrabert / settings.json
Created March 15, 2026 01:40
Claude Code Star Trek Spinner & Tips
{
"spinnerTipsEnabled": true,
"spinnerTipsOverride": {
"excludeDefault": true,
"tips": [
"The Enterprise-D has 42 decks and a crew complement of over 1,000.",
"Starfleet was founded in 2161 alongside the United Federation of Planets.",
"The Vulcan nerve pinch targets the carotid artery and nerve clusters at the base of the neck.",
"Dilithium crystals regulate matter/antimatter annihilation in the warp core.",
"The Klingon homeworld is Qo'noS, pronounced \"Kronos.\"",
#!/usr/bin/env python3
import asyncio
import hashlib
import json
import logging
import pathlib
from playwright.async_api import async_playwright
import bs4 # beautifulsoup4
@andrewrabert
andrewrabert / zstd_sqlitedict.py
Created November 15, 2022 20:09
sqlitedict + zstandard compression (w/ immediatey disk writes)
import sqlitedict
import zstandard
def zstd_sqlitedict(*args, **kwargs):
return sqlitedict.SqliteDict(
*args,
decode=lambda obj: sqlitedict.decode(zstandard.decompress(obj)),
encode=lambda obj: zstandard.compress(bytes(sqlitedict.encode(obj))),
autocommit=True,
FROM python:3.10-alpine
RUN wget -O - https://releases.hashicorp.com/envconsul/0.12.1/envconsul_0.12.1_linux_amd64.zip | unzip -d /usr/bin - \
&& chmod +x /usr/bin/envconsul
COPY example.py /example.py
ENTRYPOINT ["/usr/bin/envconsul", "-log-level=debug", "-prefix=test"]
CMD ["python", "/example.py"]
import os
import unittest
import yarl
import aiohttp.test_utils
from jellyspine.__main__ import get_app
UPSTREAM = yarl.URL(os.environ['JELLYSPINE_UPSTREAM_URL'])
WEB_DIR = 'jellyfin-web'
@andrewrabert
andrewrabert / json_vs_msgpack.py
Last active April 9, 2024 17:56
Benchmark JSON and MessagePack encoding/decoding times and result sizes
#!/usr/bin/env python3
import json
import gzip
import time
import brotli
import msgpack
import tabulate
import umsgpack
import zstd
@andrewrabert
andrewrabert / jellyfin_api.json
Last active October 26, 2019 17:20
Rough description of the Jellyfin HTTP API. Some parts are probably inaccurate.
{
"/Albums/{Id}/InstantMix": {
"GET": {
"authenticated": false,
"hidden": false,
"members": [],
"summary": "Creates an instant playlist based on a given album"
}
},
"/Artists": {
version: '2.4'
services:
example:
image: python:alpine
command: ['sh', '-c', 'pip install rabbitpy && python /example/example.py']
volumes:
- ./:/example
rabbitmq: