Skip to content

Instantly share code, notes, and snippets.

View slackersoft's full-sized avatar

Gwendolyn Van Hove slackersoft

  • Flock Freight
  • Seattle Area
View GitHub Profile
@slackersoft
slackersoft / process_list.sql
Created April 26, 2012 22:22
show processlist show all processes, even sleeping ones
SELECT * FROM information_schema.processlist WHERE Command != 'Sleep' AND Info NOT LIKE 'SELECT * FROM information_schema%'\g
@slackersoft
slackersoft / stale.rake
Created March 25, 2012 05:33
Determine if an environment is too stale
desc "Determine if an environment is stale compared to an upstream environment, based the last tagged deploy"
task :stale, [:upstream, :downstream, :days] do |t, args|
upstream = args[:upstream]
downstream = args[:downstream]
days = args[:days]
find_date = /^[a-z-]+\/(\d{4})(\d{2})(\d{2})/i
`git fetch --tags`
last_upstream_tag = `git describe --tags --match #{upstream}/*`
@slackersoft
slackersoft / production.sh
Created May 16, 2011 17:52
heroku multi-app helper script
#!/bin/bash
heroku $@ --app my-production-app