Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
[[ $# -ge 1 ]] && query="$1" || query=""
cat $BOOTSTRAPDIR/papers.csv | \
bat -l csv --color=always -p | \
fzf -i \
--exact \
--cycle \
--multi \
7h3rAm /
Created January 4, 2024 01:06 — forked from iafisher/
Programmatically access your Firefox bookmarks
A script to automatically export bookmarks from Firefox's SQLite database.
There does not seem to be a programmatic way to get Firefox to export its bookmarks in
the conventional HTML format. However, you can access the bookmark information directly
in Firefox's internal database, which is what this script does.
Always be careful when working with the internal database! If you delete data, you will
likely not be able to recover it.
7h3rAm /
Created January 3, 2024 23:15 — forked from heyarne/
Interacting with your Firefox bookmarks and history from the command line

Firefox History and Bookmark Command Line Interface

These scripts use fzf and sqlite to efficiently query your firefox history and bookmarks. This is heavily inspired by a post from the creator of fzf: fzf allows you to select multiple items and the results returned will be the URLs.

What Does It Look Like?


7h3rAm /
Last active January 8, 2024 00:37
SomaFM Radio (somafm+bat+fzf+mpv)
#!/usr/bin/env bash
[[ $# -ge 1 ]] && radio="mpv --volume=$1 --cache=yes --demuxer-max-bytes=2000000000" || radio="mpv --volume=80 --cache=yes --demuxer-max-bytes=2000000000"
echo 'genre,title,id,listeners,description' >/tmp/somafm
curl -s -H "Accept: application/json" "" | \
jq -r '.channels[]|["(\(.genre)),\(.title),\(.id),\(.listeners) listeners,\(.description)"]|@csv' | \
tr -d '"' | \
sort >>/tmp/somafm
7h3rAm / liveatc.csv
Last active January 8, 2024 00:39
LiveATC Radio (liveatc+bat+fzf+mpv)
iata location airport url
CYUL CYUL Tower Pierre Elliott Trudeau International Airport
CYVR CYVR Del/Gnd/Twr #1 Vancouver International Airport
CYYC CYYC Twr/App/Center Calgary International Airport
CYYZ CYYZ Tower Lester B. Pearson International Airport
EHAM EHAM Tower (18C/36C-27/09) Schiphol International Airport
EINN EINN Twr/App #1 Shannon Airport
EPRZ EPRZ Del/Twr/EPWW Radar Rzeszow-Jasionka Airport
KACY KACY Twr/App/Mil Atlantic City International Airport
KAPA KAPA Tower (Primary) Centennial Airport
7h3rAm / nwr.csv
Last active January 8, 2024 00:40
National Weather Radio (wxradio+bat+fzf+mpv)
Alabama/Arab 162.525
Arizona/Payson Gila County N. 162.425
Arizona/Phoenix 162.550
California/Monterey 162.550
California/Monterey Marine 162.450
Canada/Alberta/Calgary 162.400
Canada/Alberta/Edmonton 162.400
Canada/British Columbia/Chilliwack 162.400
Canada/Ontario/Collingwood 162.475
Canada/Ontario/Toronto 162.400

ADS-B and LiveATC feeder

Setup for feeding data from my Raspberry Pi to:


  • Raspberry Pi 4 Debian Bullseye, arm64
  • Mode-S Beast MkII (USB ADS-B receiver)
7h3rAm /
Created December 21, 2023 18:20 — forked from ravron/
Options to prevent accidental Yubikey OTP triggering

Tired of spamming Yubikey one-time password (OTP) codes into Slack? Here are two options to help prevent that. You can do either or both. Both require ykman, the Yubikey CLI configuration manager. Get it with Homebrew:

brew install ykman

If you…

7h3rAm /
Created November 25, 2023 20:49 — forked from michaelkeevildown/
Credit Card Regex Patterns

Credit Card Regex

  • Amex Card: ^3[47][0-9]{13}$
  • BCGlobal: ^(6541|6556)[0-9]{12}$
  • Carte Blanche Card: ^389[0-9]{11}$
  • Diners Club Card: ^3(?:0[0-5]|[68][0-9])[0-9]{11}$
  • Discover Card: ^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$
  • Insta Payment Card: ^63[7-9][0-9]{13}$
  • JCB Card: ^(?:2131|1800|35\d{3})\d{11}$
  • KoreanLocalCard: ^9[0-9]{15}$
7h3rAm /
Created November 20, 2023 23:57 — forked from Neo23x0/
Learning Aid - Top Base64 Encodings Table

Base64 Patterns - Learning Aid

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env:
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" <. Often used by Emotet (UTF-16)