Skip to content

Instantly share code, notes, and snippets.

View steveburkett's full-sized avatar

Steve Burkett steveburkett

View GitHub Profile
@steveburkett
steveburkett / gist:88b0aaf2d0c6a513b95b
Created June 5, 2014 19:09
/data/reputation/shared/config/unicorn.rb
# Set variables for usage in the before_exec block to help ensure deploys are succesful.
current_path = '/data/reputation/current'
shared_path = '/data/reputation/shared'
shared_bundler_gems_path = "/data/reputation/shared/bundled_gems"
working_directory '/data/reputation/current/'
# sets the current number of worker_processes to +nr+. Each worker
# process will serve exactly one client at a time. You can
# increment or decrement this value at runtime by sending SIGTTIN
# or SIGTTOU respectively to the master process without reloading
@steveburkett
steveburkett / gist:3cd8a069904a65de6aa2
Created June 5, 2014 19:22
Redis::InheritedError stack trace
M_ROOT]/gems/redis-3.0.7/lib/redis/client.rb:299:in `ensure_connected`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis/client.rb:191:in `block in process`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis/client.rb:270:in `logging`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis/client.rb:190:in `process`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis/client.rb:96:in `call`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis.rb:1206:in `block in sadd`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis.rb:37:in `block in synchronize`
/usr/lib64/ruby/2.0.0/monitor.rb:211:in `mon_synchronize`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize`
[GEM_ROOT]/gems/redis-3.0.7/lib/redis.rb:1205:in `sadd`
@steveburkett
steveburkett / gist:bd29318bb94a2fc96f77
Created June 6, 2014 04:23
unicorn.log after using a $redis.quit
E, [2014-06-06T04:20:17.586128 #17157] ERROR -- : Tried to use a connection from a child process without reconnecting. You need to reconnect to Redis after forking. (Redis::InheritedError)
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:299:in `ensure_connected'
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:191:in `block in process'
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:270:in `logging'
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:190:in `process'
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:96:in `call'
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis.rb:104:in `block in quit'
/data/reputation/shared/bundled_gems/ruby/2.0.0/gems/redis-3.0.7/lib/redis.rb:37:in `block in synchronize'
/usr/lib64/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/data/reputation/shared/bundled_gems/ruby/2.0
Failures:
1) POST /walkins logged in body
Failure/Error: Unable to find matching line from backtrace
ActiveRecord::RecordInvalid:
Validation failed: Email has already been taken, Uid has already been taken
# -e:1:in `<main>'
2) Configuring a Lead Task logged in with no associated forms can unconfigure a lead task
Failure/Error: Unable to find matching line from backtrace
module.exports = function(grunt) {
var deployConfiguration = grunt.file.readYAML("deployment.yml");
var bucket = 'ember-build-dsh';
grunt.initConfig({
autobots: {
distDir: 'dist',
s3: {
accessKeyId: deployConfiguration.s3_access_key_id,
module.exports = function(grunt) {
grunt.initConfig({
environment: {
default: 'development',
environments: ['development', 'production']
},
config: {
development: {
module.exports = function(grunt) {
var deployConfiguration;
var s3_bucket;
if (grunt.option('release')) {
deployConfiguration = grunt.file.readYAML("deployment.yml");
s3_bucket = 'ember-build-dsh';
} else {
deployConfiguration = grunt.file.readYAML("deployment.development.yml");
s3_bucket = 'ember-dev-dsh';
[ruby-2.1.2]master:g5-dashboard $ heroku releases --app g5-dsh-compass-rock-clone
=== g5-dsh-compass-rock-clone Releases
v20 Deploy c474228 jonnysamps@gmail.com 2015/03/13 12:23:39 (~ 13m ago)
v19 Deploy fa8e714 jonnysamps@gmail.com 2015/03/13 12:15:06 (~ 22m ago)
v18 Deploy fa8e714 jonnysamps@gmail.com 2015/03/13 11:33:53 (~ 1h ago)
v17 Deploy 3d4c218 steve@burkettnet.com 2015/03/13 11:33:09 (~ 1h ago)
v16 Deploy 6f0e9d6 jonnysamps@gmail.com 2015/03/13 09:44:55 (~ 2h ago)
[ruby-2.1.2]master:g5-dashboard $ git ls-remote cr-clone
Fetching repository, done.
@steveburkett
steveburkett / gist:1019592
Created June 10, 2011 19:31 — forked from timlinquist/gist:1019588
SAVE THE WORLD REMIX!!!
namespace :gts do
desc "get source of lead for client"
#target output
#client id 1003, from date 2001-01-01
# coupon
# www.google.com 13
# www.yahoo.com 7
# quotes
# www.google.com 7
@steveburkett
steveburkett / gist:1027521
Created June 15, 2011 16:47
make a new master branch in git
#archive the master
git checkout -b master_archive
git push origin master_archive
#delete old master
git checkout development
git branch -D master
git push origin :master #push empty ref up; force deletion
#branch new master off of development