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
[ | |
"ackbar" | |
, "commandlinefu.coffee" | |
, "facepalm.coffee" | |
, "github-issue-link.coffee" | |
, "grumpycat.coffee" | |
, "karma.coffee" | |
, "redis-brain.coffee" | |
, "robot-memes.coffee" | |
, "shipit.coffee" |
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 | |
matches=() | |
directory='/opt/graphite/storage/whisper' | |
for file in $(find $directory -type f -name '*.wsp' -print); do | |
$(python /usr/local/bin/whisper-info.py $file > /dev/null 2>&1) | |
retval=$? | |
echo "checking $file" | |
[ $retval -ne 0 ] && matches+=($file) |
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
Denormalizing roviIds on teams... | |
Denormalizing sourceIds on upcoming games... | |
matching games 2013-04-23 | |
matched 20 games | |
unmatched games: [ '1283609 Twins Marlins on Fox Sports Florida, Fox Sports North - Minnesota' ] | |
matching games 2013-04-24 | |
matched 19 games | |
unmatched games: [ '1282616 White Sox Indians on SportsTime Ohio, Comcast Sports Network', | |
'1322200 Twins Marlins on Fox Sports Florida, Fox Sports North - Minnesota', | |
'1284153 Astros Mariners on ROOT SPORTS, Comcast Sports Network', |
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
# | |
# This file is generated by Chef | |
# Do not edit, changes will be overwritten | |
# | |
Hostname "" | |
FQDNLookup true | |
BaseDir "/opt/collectd" | |
PluginDir "/opt/collectd/lib/collectd" | |
TypesDB "/opt/collectd/share/collectd/types.db" |
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
file "/etc/chef/ohai/hints/ec2.json" do | |
action :create | |
end | |
ohai "reload" do | |
action :reload | |
end | |
execute "create and mount non provisioned EBS volumes" do |
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
while [ ! -e /dev/xvdh1 ]; do echo waiting for /dev/xvdh1 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh2 ]; do echo waiting for /dev/xvdh2 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh3 ]; do echo waiting for /dev/xvdh3 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh4 ]; do echo waiting for /dev/xvdh4 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh5 ]; do echo waiting for /dev/xvdh5 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh6 ]; do echo waiting for /dev/xvdh6 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh7 ]; do echo waiting for /dev/xvdh7 to attach; sleep 10; done | |
while [ ! -e /dev/xvdh8 ]; do echo waiting for /dev/xvdh8 to attach; sleep 10; done | |
apt-get update > /tmp/apt-get-update.log 2>&1 | |
apt-get install -y mongodb-10gen > /tmp/apt-mongo.log 2>&1 |
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
request = require 'request' | |
_ = require 'underscore' | |
transformUrl = (host, url) -> | |
return host + url | |
onError = (err, req, res) -> | |
res.send "an error occurred", 500 | |
makeDefaults = (options) -> |
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
// this app is full of fail | |
var express = require("express") | |
exports.createServer = function() { | |
var app = express.createServer() | |
app.get('/', function(req, res) { | |
process.exit(1) // obviously not going to get past this |
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
// with normalizing middleware | |
app.use(normalizeResponse) | |
app.get('/account', common, UserRead) | |
function UserRead(req, res, next) { | |
// do stuff and attach it onto the res object | |
// call next() when done | |
next() |
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
app.get('/jobs/:id', checkAuth, function(req, res, next) { | |
Job.findOne({ _id: req.params.id, user_id: req.session.user._id }, function(err, j) { | |
if (!j) return(new NotFound()); | |
res.render('jobs/show', { | |
locals: { | |
j: j, | |
user: req.session.user | |
} | |
}); |