Skip to content

Instantly share code, notes, and snippets.

View subhead's full-sized avatar

subhead

  • Stuttgart, Germany
View GitHub Profile
@subhead
subhead / fix_exfat_drive.md
Created February 11, 2026 19:29 — forked from nazrdogan/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
@subhead
subhead / top-brew-packages.txt
Created January 31, 2026 11:10 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@subhead
subhead / android-dev-osx.md
Created January 10, 2026 00:12 — forked from bluenex/android-dev-osx.md
Setting up Android dev environment without Android Studio via brew on Mac OSX [Android Virtual Device (AVD) included]

Prerequisites

  • Homebrew

Android SDK

Install JAVA

First, install JAVA. Note that Android SDK is not yet supported JAVA 10, so install JAVA 8:

@subhead
subhead / Links.md
Created January 9, 2026 11:58 — forked from programming086/Links.md
Reverse engineering macOS/iOS/iPadOS
@subhead
subhead / plist2html.sh
Created January 8, 2026 10:05 — forked from mttmantovani/plist2html.sh
Convert binary .plist file of Safari bookmarks to html
#!/bin/bash
BOOKMARKS=$HOME/Library/Safari/Bookmarks.plist
plutil -convert xml1 $BOOKMARKS
sed >/tmp/plist2html.xsl <<EOF
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns='http://www.w3.org/1999/xhtml'>
@subhead
subhead / macos-app-icon.md
Created January 6, 2026 21:16 — forked from ansarizafar/macos-app-icon.md
How to create an .icns macOS app icon
@subhead
subhead / vscode-macos-context-menu.md
Created December 3, 2025 08:01 — forked from idleberg/vscode-macos-context-menu.md
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@subhead
subhead / ffmpeg.md
Created August 13, 2025 13:32 — forked from liangfu/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz: