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/local/rvm/bin/rvm-shell 1.9.3 | |
| echo "Basic Vagrantfile functional testing ..." | |
| vagrant status |
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/local/rvm/bin/rvm-shell 1.9.3 | |
| echo "Validating JSON objects..." | |
| for i in `find data_bags -name *.json`; do | |
| echo " $i:" | |
| prettify_json.rb $i || exit 1 | |
| done |
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
| var http = require("http"); | |
| var port = process.env.PORT | |
| function start() { | |
| function onRequest(request, response) { | |
| console.log("Request received."); | |
| response.writeHead(200, {"Content-Type": "text/plain"}); | |
| response.write("Hello World"); | |
| response.end(); |
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
| // Define application environment | |
| defined('APPLICATION_ENV') | |
| || define('APPLICATION_ENV', (getenv('<%= node[:tallcat][:setting][:application] %>') ? getenv('<%= node[:tallcat][:setting][:application] %>') : 'production')); |
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
| ps auxf |grep 'python csp_build.py'|`awk '{ print "kill " $2 }' |
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 | |
| # | |
| # app_name This is a startup script for use in /etc/init.d | |
| # | |
| # chkconfig: 2345 80 20 | |
| # description: Description of program / service | |
| APP_NAME = 'app_name' | |
| case ARGV.first |
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
| find /var/log/hadoop-0.20 -type f -name hadoop\* -mtime +30 -exec /bin/rm {} \; | |
| eval `ssh-agent -s` | |
| if [ -d repo ]; then (cd repo && git pull); else git clone $repourl;fi |
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
| class Hash | |
| def unnest | |
| new_hash = {} | |
| each do |key,val| | |
| if val.is_a?(Hash) | |
| new_hash.merge!(val.prefix_keys("#{key}.")) | |
| else | |
| new_hash[key] = val | |
| end | |
| end |
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
| # Change the prefix key to Ctrl-a. | |
| unbind C-b | |
| set -g prefix C-a | |
| # Set the screen to 256 colors. | |
| set -g default-terminal 'xterm-256color' | |
| # Change the last active window keybinding. | |
| unbind l | |
| bind C-a last-window |
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
| ENV[‘http_proxy’] = ‘http://apt-proxy:3142’ |