instant, real-time server monitoring. written during rails rumble 2010. [show website] [<1 minute walkthrough]
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
; gentrifire.com [15259] | |
$TTL 86400 | |
@ IN SOA ns1.linode.com. root.gentrifire.com. ( | |
2010082364 | |
14400 | |
14400 | |
1209600 | |
86400 | |
) | |
@ NS ns1.linode.com. |
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
var http = require('http'); | |
var server = http.createServer(function (req, res) { | |
res.writeHead(200, { "Content-Type": "text/plain" }) | |
res.end("Hello world\n"); | |
}); | |
server.listen(parseInt(process.env.PORT || 8080)); |
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
// if you have the ruby sass gem installed, use the `sass` executable from it to | |
// generate css instead of the incomplete sass.js implementation. | |
express.compiler.compilers.sass.compile = function(str, fn) { | |
try { | |
var sass = require('child_process').spawn('sass', ['--stdin']), | |
append = function(data) { css += data; }, | |
css = ''; | |
sass.stdout.on('data', append); | |
sass.stderr.on('data', append); |
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
Last login: Thu Nov 4 22:30:18 on console | |
[visnup@qi ― 10:30 PM ――――――――――――――――――――――――――――――――――――――――――――――――――――――― ~] | |
$ codesign -vv /Applications/iPhoto.app/ | |
/Applications/iPhoto.app/: a sealed resource is missing or invalid | |
/Applications/iPhoto.app/Contents/Resources/English.lproj/FSCalendarsMissingView.nib/keyedobjects.nib: resource added | |
/Applications/iPhoto.app/Contents/Resources/GSNoCalendar.png: resource added |
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
#!/usr/bin/env node | |
var http = require('http') | |
, webapp = require('webapp'); | |
http.createServer(webapp.bind([])).listen(8000); | |
// ^^^^^^^^^^^^^^^ | |
// | (x) | |
// ROFLSCALE DEQUE ---/ |
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
$ ab -c 10 -n 500 http://127.0.0.1:8000/push/1 | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'ruby-debug' | |
def out s = '' | |
puts "#{$indent}#{s}" | |
end | |
def read_ifd f, order = 'n', indent = '' |
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
# breakpoint set inside the integration specs. | |
# a simple person.posts(true) causes a whole lotta activity still. | |
(rdb:1) person.posts(true) | |
mongoid_test['posts'].find({"person_id"=>BSON::ObjectId('4d2dfe965b692c635a000001')}, {}) | |
mongoid_test['posts'].find({:_id=>BSON::ObjectId('4d2dfe965b692c635a000002'), :version=>6}, {}).limit(-1) | |
mongoid_test['posts'].find({:_id=>BSON::ObjectId('4d2dfea15b692c635a000004'), :version=>1}, {}).limit(-1) | |
MONGODB mongoid_test['posts'].update({"_id"=>BSON::ObjectId('4d2dfe965b692c635a000002'), "versions._id"=>BSON::ObjectId('4d2dfea15b692c635a000004')}, {"$set"=>{"versions.0.updated_at"=>Wed Jan 12 19:35:16 UTC 2011}}) | |
mongoid_test['posts'].find({:_id=>BSON::ObjectId('4d2dfeaa5b692c635a000006'), :version=>2}, {}).limit(-1) | |
MONGODB mongoid_test['posts'].update({"_id"=>BSON::ObjectId('4d2dfe965b692c635a000002'), "versions._id"=>BSON::ObjectId('4d2dfeaa5b692c635a000006')}, {"$set"=>{"versions.1.updated_at"=>Wed Jan 12 19:35:16 UTC 2011}}) |