Skip to content

Instantly share code, notes, and snippets.

View finwarman's full-sized avatar
💭
🌿

Fin Warman finwarman

💭
🌿
View GitHub Profile
@finwarman
finwarman / worktrees.zsh
Last active September 3, 2026 10:15
wt - Navigate git worktrees. `wt help` for usage (worktrees.zsh)
# Add to zshrc:
# [[ -f ~/.config/zsh/worktrees.zsh ]] && source ~/.config/zsh/worktrees.zsh
# Git worktree navigation. Run `wt help` for the commands.
_wt_rows() {
git worktree list --porcelain 2>/dev/null | awk '
/^worktree / { path = substr($0, 10); branch = "(detached)"; stale = "" }
/^branch / { branch = substr($0, 8); sub(/^refs\/heads\//, "", branch) }
/^prunable/ { stale = "stale" }
@finwarman
finwarman / gist:fd3ccb60d33243952dc5962d7829a750
Created August 28, 2020 13:41
MacOS current audio device (bash command)
system_profiler SPAudioDataType | grep "Default Output Device: Yes" -B 2 | head -n 1 | sed "s/://g" | awk '"'"'{$1=$1};1'"'"'
@finwarman
finwarman / tweet_dumper.py
Created April 12, 2017 15:45 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""