CLICK ME
yes, even hidden code blocks!
print("hello world!")
## chef report handler for Consul | |
## depends on a chef-client check being registered with the agent | |
## • pings TTL-style check with ok/warning status on chef run pass/fail | |
## • stores run report and node attributes in chef/reports/<datacenter>/<consul_node_name> | |
require "chef/handler" | |
require "rest_client" | |
class ConsulHandler < Chef::Handler | |
attr_reader :config |
[alias] | |
# Returns name of current branch | |
# Usage: git current | |
current = rev-parse --abbrev-ref HEAD | |
# Makes a full copy of the current branch with `backup.<epoch>` appended before doing an interactive rebase | |
# Usage: git safebase HEAD~2 | |
safebase = !CURRENT=$(git current) && git branch -c $CURRENT $CURRENT.backup.$(date +%s) && git rebase -i |