Skip to content

Instantly share code, notes, and snippets.

@philhartung
philhartung / ebur.sh
Last active April 21, 2023 21:23
EBUR128 loudness meter using ffplay, 800x480 resolution for Raspberry Pi touchscreen
#/bin/sh
ffplay -exitonkeydown -exitonmousedown -fs -fflags nobuffer -probesize 32 -analyzeduration 1 -f lavfi -i "amovie=default:f=alsa,asplit=2[sv][eb];\
[sv]showvolume=b=0:o=v:w=480:h=23[sv-v];\
[eb]ebur128=video=1:size=754x480[eb-v][out1];\
[eb-v][sv-v]hstack=2[out0]"
@bigodel
bigodel / literate-ledger.org
Last active May 20, 2024 14:11
Literate Ledger Programming(?) with Org-mode

Literate Ledger Programming(?) with Org-mode

Recently, given the economic hardships presented by the current pandemic, coupled with the fact that I have started making my own money, I have started to keep track of my finances. I have always known that I would use Ledger, the command line account tool, to manage my money. Ledger was created by an Emacs maintainer, which hints to a very good Emacs integration, and indeed =ledger-mode= offers a great environment for editing, reporting and modifying Ledger files. But even though it is a pretty complete major mode, I missed being

@simonmichael
simonmichael / .emacs
Last active February 9, 2024 14:05
Emacs org-capture template for hledger/ledger/PTA transactions
(setq org-capture-templates '(
;...
("t" "h/ledger transaction" plain
(file "~/finance/2020.journal")
"%(org-read-date) %^{Description}
%^{Category|expenses:food:groceries|expenses:food:dining|expenses:transport:gasoline|expenses:home|expenses:medical|expenses:entertainment|revenues:consulting|revenues:misc} %^{Amount}
%^{Asset/liability account|assets:cash|assets:bank:checking|liabilities:bank:credit card}"
:empty-lines 1)
))
@heroheman
heroheman / ranger-cheatsheet.md
Last active March 15, 2026 20:23
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@tasdikrahman
tasdikrahman / irssi.md
Last active December 1, 2025 20:20
irssi cheatsheet
@tubaman
tubaman / ledgerparser.py
Last active February 27, 2023 16:03
ledgerparser
"""ledger journal parser
We use this to parse the ledger file because we want to preserve the
exact format of the file including spaces, etc. It maps the parsed
transaction to the origin lines of the file.
"""
import ledger
@xero
xero / irc.md
Last active March 14, 2026 01:27
irc cheat sheet
@staltz
staltz / introrx.md
Last active March 10, 2026 03:48
The introduction to Reactive Programming you've been missing
@automata
automata / README
Last active February 3, 2022 00:15
emscripten + audio data api
to get it working, install Emscripten:
https://github.com/kripken/emscripten/wiki/Tutorial
(on Ubuntu: https://github.com/kripken/emscripten/wiki/Getting-Started-on-Ubuntu-12.10)
set all the env variables and run build.sh.
open sin_audiodata.html in your Firefox.
@willurd
willurd / web-servers.md
Last active March 13, 2026 17:53
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000