I hereby claim:
- I am goozbach on github.
- I am goozbach (https://keybase.io/goozbach) on keybase.
- I have a public key ASA93BLHOKZ_NdIE9N_0nkkyGi6RUCdnicbLzGIpQkOg9wo
To claim this, I am signing this object:
| --- | |
| - name: debug vars | |
| hosts: localhost | |
| tasks: | |
| - name: debug vars | |
| debug: | |
| msg: "this is foo {{ foo | default('foodefault') }}; This is bar {{ bar | default('bardefault') }}" |
| gitcreate() { | |
| # usage: gitcreate <reponame> [--push] | |
| # requires 'jq' to be installed | |
| # Seed of this idea came from http://www.karan.org/blog/2017/01/13/create-a-new-github-com-repo-from-the-cli/ | |
| REPONAME=${1} | |
| PUSH=${2} | |
| # This function only works in a git repo. |
I hereby claim:
To claim this, I am signing this object:
Had some questions at work about what handlers could do. So we built this playbook to test.
| while : ; do let "surprise = $RANDOM % 9"; [[ $surprise -eq 0 ]] && echo -e -n "\033[0;31m"; for i in r e d r u m ; do echo -n $i ; sleep .${RANDOM: -2}; done; echo -e -n "\013\033[0;39m"; done |
| #!/bin/bash | |
| git submodule sync | |
| git submodule update | |
| git submodule foreach git submodule sync | |
| git submodule foreach git submodule update | |
| git submodule foreach git submodule foreach git submodule sync | |
| git submodule foreach git submodule foreach git submodule update |
| [2013-12-06:10:18:09 dcarter@hoth ~] | |
| $ hr | |
| --------------------------------------------------------------------------------------------------------------------------- | |
| [2013-12-06:10:18:12 dcarter@hoth ~] | |
| $ type hr | |
| hr is aliased to `for i in $(seq 1 $COLUMNS); do echo -n -; done' |
| # history stuff | |
| export HISTSIZE=10000000 | |
| # create the historydir if it doesn't exist | |
| if [[ ! -d ${HOME}/.bash_history.d/ ]] | |
| then | |
| mkdir -p ${HOME}/.bash_history.d/ | |
| fi | |
| # one history file per year | |
| export HISTFILE=${HOME}/.bash_history.d/${HOSTNAME}.$(date +%Y) |
| # history stuff | |
| export HISTSIZE=10000000 | |
| # create the historydir if it doesn't exist | |
| if [[ ! -d ${HOME}/.bash_history.d/ ]] | |
| then | |
| mkdir -p ${HOME}/.bash_history.d/ | |
| fi | |
| # one history file per year | |
| export HISTFILE=${HOME}/.bash_history.d/${HOSTNAME}.$(date +%Y) |
| /usr/bin/less |