My basic point is that currently, configuration management code manifests as a giant, unverifiable pile of mud. The languages we use lack types and are weak at making non-runtime assertions. With the modicum of sanity that a proper module system and types can bring to the table, we would be considerably better off.
This file contains hidden or 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
| #!/bin/sh | |
| PORT=4200 | |
| sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist | |
| sudo sed -i '' "s/\(<servicePort>\)[^<]*/\1$PORT/" /Library/Application\ Support/CrashPlan/conf/my.service.xml | |
| sed -i '' "s/#*\(servicePort=\).*/\1$PORT/" /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties | |
| defaults write /Applications/CrashPlan.app/Contents/Resources/CrashPlan\ menu\ bar.app/Contents/Info CPPort $PORT | |
| sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist |
Note: total experiment and hack, looks nasty, could be awesome:
- Drop the
kitchen.local.ymlinto$HOME/.kitchen/config.yml - Install polipo (with Mac:
brew install polipo, with Ubuntu:apt-get install polipo) - Drop
polipo-startandpolipo-consolesomewhere useful (perhaps$HOME/bin?)
This file contains hidden or 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
| * An Emacs Workshop for Beginners | |
| It's all about discovering Emacs Really | |
| ** Install | |
| *** Emacs 24.3 | |
| http://emacsformacosx.com/ | |
| http://emacs.naquadah.org/ | |
| http://ftp.gnu.org/pub/gnu/emacs/windows/ | |
| ** Conventions and docs |
This file contains hidden or 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
| function table() { | |
| case "$1" in | |
| flip) | |
| echo "(╯°□°)╯︵ ┻━┻ " | |
| ;; | |
| set) | |
| echo "┬─┬ ノ( ゜-゜ノ)" | |
| ;; | |
| man) | |
| echo "(╯°Д°)╯︵ /(.□ . \)" |
This file contains hidden or 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
| echo '{ | |
| "handlers": ["debug"], | |
| "name": "push_woot_test", | |
| "output": "woot!", | |
| "status": 0 | |
| }' | nc -w1 127.0.0.1 3030 |
This file contains hidden or 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
| ddeleo@boltzmann chef git:(master)> bin/knife role tree $node_name | |
| top level | |
| |-role[preprod] | |
| | |-recipe[network] | |
| | |-recipe[splunk42] | |
| |-role[mysql-master] | |
| | |-role[base] | |
| | | |-role[platform-annoyances] | |
| | | | |-recipe[platform-specific] | |
| | | | |-recipe[selinux::disabled] |
This file contains hidden or 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 | |
| cbdir=ARGV[0] | |
| output = "./deps.dot" | |
| puts "Running on #{cbdir}..." | |
| cb_meta = Dir.glob("#{cbdir}/*/metadata.rb") | |
| fp=File.open(output,"w") |
This file contains hidden or 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 | |
| cbdir=ARGV[0] | |
| output = "./deps.dot" | |
| puts "Running on #{cbdir}..." | |
| cb_meta = Dir.glob("#{cbdir}/*/metadata.rb") | |
| fp=File.open(output,"w") |