Skip to content

Instantly share code, notes, and snippets.

View drmaas's full-sized avatar

Dan Maas drmaas

View GitHub Profile
@johnwgillis
johnwgillis / DeleteAllBranchesExceptMaster.md
Last active January 7, 2020 19:23
How to delete all branches except for master locally and on a remote

Delete all local branches except for master

git branch | grep -v 'master$' | xargs git branch -D

Delete all remote branches except for master

REMOTE_NAME="origin"
command -v parallel || brew install parallel
git branch -r | grep $REMOTE_NAME/ | grep -v 'master$' | grep -v HEAD | cut -d/ -f2- | parallel git push $REMOTE_NAME --delete
@larryhou
larryhou / tinyproxy.md
Last active November 27, 2024 19:06
Install tinyproxy on macOS
  • brew install tinyproxy

  • Comment out Allow 127.0.0.1 in /usr/local/etc/tinyproxy.conf.

  • Start tinyproxy with tinyproxy -d.

  • Follow the log file with

    tail -f /usr/local/var/log/tinyproxy/tinyproxy.log
  • On the iOS device, in Wi-Fi settings, set HTTP Proxy to Manual and set

@harlow
harlow / golang_job_queue.md
Last active March 29, 2025 04:55
Job queues in Golang
@rxaviers
rxaviers / gist:7360908
Last active May 6, 2025 14:43
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: