Skip to content

Instantly share code, notes, and snippets.

# on local machine
cap production deploy:web:disable
cap production deploy
# on server
cd <current production directory >/db/new_verticals
rm -rf remove the providers directory
# on local machine
cap production deploy:migrations
var randomloop = function(timeout) {
document.getElementById('msginput').value = Math.random();
document.getElementById('sendmsg').click();
window.setTimeout(function(){
randomloop(timeout);
}, timeout);
}
randomloop(1000);
@highgroove
highgroove / bort.rb
Created August 24, 2009 18:32 — forked from mtodd/bort.rb
# bort.rb
#
# Run:
# rails solution_log -m http://gist.github.com/70653.txt
#
# Pulled from:
# http://m.onkey.org/2008/12/4/rails-templates
#
# Bort project:
# http://github.com/fudgestudios/bort/tree/master
require 'open-uri'
class NginxReport < Scout::Plugin
def build_report
url = option(:url) || 'http://127.0.0.1/nginx_status'
total, requests, reading, writing, waiting = nil
open(url) {|f|
# this is cool
puts "very freaking cool."