Skip to content

Instantly share code, notes, and snippets.

:octocat:

Jason Byck jbyck

:octocat:
  • New York, NY
Block or report user

Report or block jbyck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8191057
2290061
2290062
8428784
8428785
8428786
8428787
8428788
8428789
8428790
8428791
View gist:8190839
9452243
9452312
9452257
9452283
9452195
9452376
9452212
9452446
9452269
9452470
View gist:8190673
8461340
8461343
8461345
8461346
8461349
8461351
8461354
8461357
8461361
8461366
View unicorn_killer.rb
# # 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"
View default_whenever.rb
#
# 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 Feb 26, 2013
403 Error in Chef Run List
View gist:5036615
"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 Jun 4, 2012
HTML/CSS Banner
View banner.html
<div id="hire" class="fadeInDown">
<h3>
<a href="/hire.html">HIRE ME</a>
</h3>
<div class="arrow"></div>
</div>
You can’t perform that action at this time.