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
source 'https://rubygems.org' | |
gem 'aws-sdk', '~> 2.3' |
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
//------------------------------------- | |
// Nodejs app to push/pop with SQS | |
// $ npm install aws-sdk express | |
// $ node sqs-express.js | |
//------------------------------------- | |
var express = require('express'), | |
AWS = require('aws-sdk'); | |
AWS.config.update({ |
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
#!/bin/bash | |
#This script lists all commands for setting up an ubuntu instance with puppet master and agent | |
sudo su | |
export LOCAL_HOSTNAME=$(wget -qO- http://instance-data/latest/meta-data/local-hostname) | |
apt-get update | |
apt-get install -y puppet puppetmaster apache2 | |
puppet agent --enable | |
mkdir /opt/hiera_data |
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
#!/bin/sh | |
echo "Attempting to delete myapp_dev & myapp_test" | |
drop_the_database(){ | |
local db=$1 | |
local user=$2 | |
psql $db $user << EOF | |
SELECT | |
pg_terminate_backend(procpid) | |
FROM |
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
$background_clr: #09223F; | |
$foreground_clr: #FFEFFF; | |
$border_clr: #888; | |
$line_no_background: #EFEFEF; | |
$line_no_foreground: #888; | |
$entity_clr: #FFDD00; | |
$keyword_clr: #FF9D00; | |
$constant_clr: #FF628C; | |
$string_clr: #3AD900; | |
$comment_clr: #0088FF; |