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
# 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 |
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 randomloop = function(timeout) { | |
document.getElementById('msginput').value = Math.random(); | |
document.getElementById('sendmsg').click(); | |
window.setTimeout(function(){ | |
randomloop(timeout); | |
}, timeout); | |
} | |
randomloop(1000); |
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
# 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 |
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
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 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 is cool | |
puts "very freaking cool." |