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 September 6, 2023 04:56
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 April 24, 2024 10:21
Job queues in Golang
@rxaviers
rxaviers / gist:7360908
Last active May 9, 2024 15:35
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: