Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"modules": [
"title",
"separator",
"os",
"host",
"kernel",
"uptime",
"packages",
@LTeder
LTeder / oh-my-bashrc.sh
Created December 8, 2025 17:33
A stock bashrc of mine using OMB, yazi, and fastfetch
alias hg='history|grep'
alias ffetch='fastfetch -c ~/.config/fastfetch/fastfetch.jsonc'
# Enable the subsequent settings only in interactive sessions
case $- in
*i*) ;;
*) return;;
esac
# yazi shell wrapper
@LTeder
LTeder / leechblock-reddit-work.txt
Created October 10, 2025 16:18
Helpful Reddit domains for LeechBlock
+reddit.com/r/*ai*
+reddit.com/r/*data*
+reddit.com/r/*dev*
+reddit.com/r/*engineer*
+reddit.com/r/*git*
+reddit.com/r/*linux*
+reddit.com/r/*mac*
+reddit.com/r/*microsoft*
+reddit.com/r/*nix*
+reddit.com/r/*office*
@LTeder
LTeder / us-atcts.csv
Created October 22, 2024 17:42
List of air traffic control towers in the US by IATA airport code. Includes FAA-operated towers (from 123atc.com), contract towers (from faa.gov), and AFBs (from amops.fandom.com).
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Name
ABE
ABI
ABQ
ABY
ACK
ACT
ACY
ADM
ADQ
@LTeder
LTeder / piano_transcription.md
Last active March 2, 2024 16:39
MIDI piano transcription from any recording

Using a couple repos with Python, you can transcribe any piano recording to MIDI. Each will use their own environment. Pretty straightforward with conda/mamba.

Both steps incur some loss which affects the quality of the end result. But on any reasonably hi-fi recording since the late 60s you should get acceptable results. Super useful for dumping into Syn/Neothesia.

  1. Start with a folder containing WAV files of the desired songs.

  2. Use Music-Source-Separation-Training's Demucs4HT 6-stem model inference to derive the piano stems. For me this was:

@LTeder
LTeder / llm_rules.txt
Last active November 5, 2025 20:11
LLM pair programmer custom directions
The following notes are relevant whenever dealing with code.
When not dealing with code, these instructions indicate preferred ways of communicating.
– When generating comments, attempt to match my style as it's provided in context
– Treat me as an intermediate learner
– You may use high levels of speculation or prediction, but mention when this is the case
– Briefly suggest areas of improvement whenever applicable after a long answer
– It is good to present alternatives
– Cite sources and/or include URLs when possible
@LTeder
LTeder / s3_download_file_progress_bar.py
Last active March 2, 2024 16:45 — forked from wy193777/s3_download_file_progress_bar.py
AWS S3 download_fileobj tqdm progress callback
#python3
BUCKET_NAME = 'your_s3_bucket_name'
FILE_NAME = 'your_s3_file_name'
s3 = boto3.resource('s3')
path = "/tmp/{}".format(FILE_NAME)
file_object = s3.Object(BUCKET_NAME, FILE_NAME)
filesize = file_object.content_length
with tqdm(total=filesize, desc=f'source: s3://{s3_bucket}/{s3_object_key}',
bar_format="{percentage:.1f}%|{bar:25} | {rate_fmt} | {desc}",
@LTeder
LTeder / wandb_update_bests.py
Last active July 19, 2024 02:52
Updates target parameters in all runs of a W&B project to bests as reported by api.run.scan_history()
import wandb
from tqdm import tqdm
WANDB_PROJECT = "project"
TEST_CHANGES = True # Run once before changing
api = wandb.Api()
runs = [run for run in api.runs(WANDB_PROJECT)]
print(f"{len(runs)} runs found")