Skip to content

Instantly share code, notes, and snippets.

@solitaryr
solitaryr / keybase.md
Created March 14, 2019 15:17
keybase.md

Keybase proof

I hereby claim:

  • I am solitaryr on github.
  • I am solitaryr (https://keybase.io/solitaryr) on keybase.
  • I have a public key ASB31ca73tb1jvMepoIaEFFj0LG1xY4P083VzfdqVZTWIwo

To claim this, I am signing this object:

CAVEAT EMPTOR
These were culled from various sites such as which are a bit dated but...
https://haacked.com/archive/2014/07/28/github-flow-aliases/
http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/
[alias]
la = !git config -l | grep alias | cut -c 7-
lg = log --oneline --decorate --all --graph
lgc = !f() { git lgl $1^..$1; }; f
- name: Check for reboot hint.
shell: LAST_KERNEL=$(rpm -q --last kernel | perl -pe 's/^kernel-(\S+).*/$1/' | head -1); CURRENT_KERNEL=$(uname -r); if [ $LAST_KERNEL != $CURRENT_KERNEL ]; then echo 'reboot'; else echo 'no'; fi
ignore_errors: true
register: reboot_hint
- name: Rebooting ...
command: shutdown -r now "Reboot required for updated kernel"
async: 0
poll: 0
ignore_errors: true