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
#!/usr/bin/env ruby | |
require 'fileutils' | |
require 'optparse' | |
def snake_case(str) | |
return str.downcase if str =~ /\A[A-Z]+\z/ | |
str.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') | |
.gsub(/([a-z])([A-Z])/, '\1_\2') | |
.downcase |
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
#!/usr/bin/env bash | |
post_start_fg() { | |
sleep 2 | |
echo "Post Hooks" | |
} | |
echo "In Main" | |
post_start_fg & | |
echo "Now start long running process" |
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
%.json : %.yaml | |
ruby -rjson -ryaml -e "puts JSON.pretty_generate(YAML.load(ARGF.read))" $< > $@ |
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
#cloud-config | |
apt: | |
sources: | |
kubernetes.list: | |
source: deb http://apt.kubernetes.io/ kubernetes-xenial main | |
keyid: A7317B0F | |
package_upgrade: true | |
package_update: true |