This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Post-commit hook that decrypts files containing '$ANSIBLE_VAULT' | |
# | |
# File should be .git/hooks/post-commit and executable | |
CRYPT_TAG='^\$ANSIBLE_VAULT' | |
EXIT_STATUS=0 | |
wipe="\033[1m\033[0m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: git loglive 20 | |
while : | |
do | |
tput clear | |
git --no-pager log -$1 --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset" | |
sleep 1 | |
done |
- Documentation @ http://git.kernel.org/cgit/network/connman/connman.git/tree/doc
-
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[merge] | |
conflictstyle = diff3 | |
tool = three_meld | |
[mergetool "three_meld"] | |
# Opens up four diff windows: | |
# LOCAL:MERGED, BASE:LOCAL, BASE:REMOTE, LOCAL:REMOTE | |
# | |
# Lets you edit the MERGED file (including original diff3 markers), showing | |
# you the final diff from LOCAL. For reference, you can look in the other | |
# windows to see how LOCAL and REMOTE are each different from BASE, as well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git branch -r --merged | | |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' | | |
xargs git push origin --delete |