Thursday, June 25, 2015
Friday, June 19, 2015
IRC cheat sheet
Register IRC nick
/msg NickServ REGISTER password youremail@example.com
Identify to primary IRC account:
/msg NickServ IDENTIFY account password
Get nick info
/msg NickServ INFO account
Reset password
/msg NickServ SET PASSWORD mynewpassword
Wednesday, June 17, 2015
Reset command hash
To flush the hash table used by the shell to remember the full path names of executable files:
hash -r
Friday, June 05, 2015
git recipes
Git: prune local branches without remotes
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
Cache git credentials (Linux)
While it is possible to store git credentials locally via .netrc, that requires storing them in plain text. Even with 400 permissions, it is an unnecessary risk. I have read references about using GPG for encryption within this file, which increases security, but introduces a new dependency. When changing hosts frequently, local dependencies become highly impractical. Instead, to cache the credentials in memory with an expiration timeout, one hour, for example:
git config --global credential.helper 'cache --timeout=3600'
Subscribe to:
Posts (Atom)