Skip to content

Instantly share code, notes, and snippets.

@andreypaa
andreypaa / delete_local_branches.sh
Created July 13, 2022 09:45 — forked from TSMMark/delete_local_branches.sh
Delete local branches that don't exist on remote/origin !USE AT YOUR OWN RISK!
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D
@andreypaa
andreypaa / remove-message.js
Created July 31, 2020 12:57 — forked from simonw/remove-message.js
JavaScript one-liner for removing a ?message=... parameter from the visible URL in the browser
history.replaceState && history.replaceState(
null, '', location.pathname + location.search.replace(/[\?&]message=[^&]+/, '').replace(/^&/, '?')
);
@andreypaa
andreypaa / config-git-proxy.txt
Created September 26, 2018 06:47 — forked from bynil/config-git-proxy.txt
Use git over socks5 proxy
Port: 1080
1. Create a file /YOUR PATH/gitproxy.sh with content:
#!/bin/sh
nc -X 5 -x 127.0.0.1:1080 "$@"
2. Edit your ~/.gitconfig
# For git://