Skip to content

Instantly share code, notes, and snippets.

View phoenixthrush's full-sized avatar
🦝
coding through nights

lulu phoenixthrush

🦝
coding through nights
View GitHub Profile
@phoenixthrush
phoenixthrush / aligning-images.md
Last active August 13, 2025 01:57 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown #Markdown

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@phoenixthrush
phoenixthrush / file_magic_numbers.md
Last active August 13, 2025 01:55 — forked from leommoore/file_magic_numbers.md
File Magic Numbers #MagicNumbers

File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

Image Files

@phoenixthrush
phoenixthrush / install nano.sh
Last active August 13, 2025 01:41 — forked from BlakeGardner/install nano.sh
Nano syntax highlighting on macOS #Nano #macOS #SyntaxHighlighting
# Last updated March, 2022 for Apple silicon Macs
# Install Homebrew if you don't already have it: https://brew.sh
# install nano from homebrew
brew install nano nanorc
# update your nanorc file
echo 'include "/opt/homebrew/share/nanorc/*.nanorc"' >> ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
@phoenixthrush
phoenixthrush / README.md
Last active August 13, 2025 01:40 — forked from flaksp/README.md
BitWarden to iCloud Keychain CSV with TOTP & notes #BitWarden #iCloudKeychain

BitWarden to Apple iCloud Keychain passwords converter

This Python scripts allows you to move your passwords from BitWarden to Apple iCloud.

You need to know:

  • It ignores secure notes, credit cards and other types that are not passwords.
  • It ignores BitWarden entries without usernames, passwords and URLs.
  • It also ignores URLs that do not start with http:// or https://.
  • It normalizes all TOTP tokens, e.g. wskg vtqa h5kl bhb4 v4v2 ybyo woc6 qme2 will be converted to otpauth://totp/example.com:[email protected]?secret=WSKGVTQAH5KLBHB4V4V2YBYOWOC6QME2&issuer=example.com&algorithm=SHA1&digits=6&period=30.
@phoenixthrush
phoenixthrush / FLAC_to_ALAC.ps1
Last active August 13, 2025 01:22 — forked from nibral/flac_to_alac.ps1
Convert FLAC to ALAC with PowerShell and FFmpeg #PowerShell #FFmpeg #AudioConversion
Get-ChildItem -Filter "*.flac" | % { ffmpeg -i "$_" -c:a alac -map 0:0 -y "$($_.BaseName).m4a" }
@phoenixthrush
phoenixthrush / ANSI.md
Last active August 13, 2025 01:22 — forked from fnky/ANSI.md
ANSI Escape Codes #Terminal #ANSI #ColorCodes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27