Skip to content

Instantly share code, notes, and snippets.

View jbyck's full-sized avatar
:octocat:

Jason Byck jbyck

:octocat:
View GitHub Profile
@jbyck
jbyck / gist:8191057
Created December 31, 2013 01:37
ASX, ODE, MCX
2290061
2290062
8428784
8428785
8428786
8428787
8428788
8428789
8428790
8428791
@jbyck
jbyck / gist:8190839
Created December 31, 2013 01:07
TFX
9452243
9452312
9452257
9452283
9452195
9452376
9452212
9452446
9452269
9452470
8461340
8461343
8461345
8461346
8461349
8461351
8461354
8461357
8461361
8461366
# # your config.ru
# require 'unicorn_killer'
# use UnicornKiller::MaxRequests, 1000
# use UnicornKiller::Oom, 400 * 1024
module UnicornKiller
module Kill
def quit
sec = (Time.now - @process_start).to_i
warn "#{self.class} send SIGQUIT (pid: #{Process.pid})\talive: #{sec} sec"
#
# Cookbook Name:: whenever
# Recipe:: default
#
ey_cloud_report "whenever" do
message "starting whenever recipe"
end
# Set your application name here
@jbyck
jbyck / gist:5036615
Created February 26, 2013 07:19
403 Error in Chef Run List
"exception": "Net::HTTPServerException: deploy_revision[wikiposit] (/var/chef/cache/cookbooks/application/providers/default.rb line 122) had an error: Net::HTTPServerException: template[/etc/unicorn/wikiposit.rb] (/var/chef/cache/cookbooks/unicorn/definitions/unicorn_config.rb line 38) had an error: Net::HTTPServerException: 403 \"Forbidden\"",
"backtrace": [
"/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:2632:in `error!'",
"/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:259:in `block in streaming_request'",
"/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:280:in `retriable_rest_request'",
"/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:236:in `streaming_request'",
"/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:97:in `get'",
"/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/cookbook/remote_file_vendor.rb:63:in `get_filename'",
"/opt/chef/embedded/lib/ruby/gems
@jbyck
jbyck / banner.html
Created June 4, 2012 14:25
HTML/CSS Banner
<div id="hire" class="fadeInDown">
<h3>
<a href="/hire.html">HIRE ME</a>
</h3>
<div class="arrow"></div>
</div>