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
#autoload | |
vsnap() { | |
trap "exit 1" INT | |
if [[ $#@ -ne 2 ]] ; then | |
echo 'usage: vsnap VM_NAME SNAPSHOT_DIR' | |
return 1 | |
fi | |
lastsnap="0" |
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
search(:node).map { |n| {fqdn: n['fqdn'], ip: n['ipaddress']} }.each do |i| | |
Chef::Log.info "Creating: host #{i[:fqdn]}" | |
djbdns_rr "host #{i[:fqdn]}" do | |
fqdn i[:fqdn] | |
cwd "#{node[:djbdns][:tinydns_dir]}/root" | |
ip i[:ip] | |
type "host" | |
action :add |
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
case "$(sw_vers -productVersion)" in | |
10.5.*|10.6.*) | |
alias flush_dns="sudo dscacheutil -flushcache" | |
;; | |
10.8.*|10.7.*) | |
alias flush_dns="sudo killall -HUP mDNSResponder" | |
;; | |
10.9.*) | |
alias flush_dns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" | |
;; |
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
TOP COMMENTERS (github) | |
-------------------------------------------------------------------------------- | |
sytse 70 of 16773 ( 0%) ###################################################################### | |
homakov 61 of 16773 ( 0%) ############################################################# | |
DanBC 50 of 16773 ( 0%) ################################################## | |
facepalm 46 of 16773 ( 0%) ############################################## | |
malandrew 46 of 16773 ( 0%) ############################################## | |
nailer 42 of 16773 ( 0%) ########################################## | |
masklinn 39 of 16773 ( 0%) ####################################### | |
rmc 38 of 16773 ( 0%) ###################################### |
OlderNewer