Skip to content

Instantly share code, notes, and snippets.

View mikesplain's full-sized avatar
☸️
Kubernetes, DevOps, AI Operations

Mike Splain mikesplain

☸️
Kubernetes, DevOps, AI Operations
View GitHub Profile
@mikesplain
mikesplain / discourse.sh
Last active August 29, 2015 13:56
discourse installer
# This will install Docker and build discourse
#Docker
curl -s https://get.docker.io/ubuntu/ | sudo sh
#Packages (both neccessarly and some to help debug)
apt-get update
apt-get install git build-essential htop iftop -y
### Discourse
@mikesplain
mikesplain / 0-readme.md
Created November 30, 2012 16:25 — forked from burke/0-readme.md
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@mikesplain
mikesplain / rbenv-1.8.7-bundle-install-libv8
Created September 11, 2012 17:20 — forked from mackato/rbenv-1.8.7-bundle-install-libv8
rbenv exec bundle install with libv8 (1.8.7)
RUBYOPT="-r rubygems" rbenv exec bundle install --path vendor/bundle
@mikesplain
mikesplain / a short version.rb
Created June 16, 2012 21:52
rails server output for hoptoad server
...
var key="controller">application</var></var><var key="action_dispatch.request.formats">["text/html"]</var></cgi-data></request><server-environment><project-root>/Users/mikesplain/code/ourstage</project-root><environment-name>development</environment-name><hostname>Mikes-MacBook-Pro.local</hostname></server-environment></notice>
Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'mail_handler_api_key' LIMIT 1
IssueCustomField Load (0.2ms) SELECT "custom_fields".* FROM "custom_fields" WHERE "custom_fields"."type" IN ('IssueCustomField') AND "custom_fields"."name" = 'Error class' LIMIT 1
(0.1ms) begin transaction
(0.0ms) rollback transaction
Completed 500 Internal Server Error in 37ms
NoMethodError (undefined method `[]' for false:FalseClass):
activerecord (3.2.6) lib/active_record/validations.rb:76:in `perform_validations'
Configuration:
api_key: "--- \n:project: ourstage-dev\n:tracker: Bug\n:api_key:
js_api_key: "--- \n:project: ourstage-dev\n:tracker: Bug\n:api_key:
backtrace_filters: [#<Proc:0x007fb2123789a0@/Users/mikesplain/.rvm/gems/ru
development_environments: []
development_lookup: true
environment_name: "production"
host: "osredmine201.herokuapp.com/"
http_open_timeout: 2
http_read_timeout: 5
2012-06-14T02:25:43+00:00 app[web.1]: Started POST "/notifier_api/v2/notices/" for 66.30.62.120 at 2012-06-14 02:25:43 +0000
2012-06-14T02:25:43+00:00 app[web.1]: Processing by NoticesController#index_v2 as XML
2012-06-14T02:25:43+00:00 app[web.1]: Parameters: {"notice"=>{"version"=>"2.2", "api_key"=>"--- \n:project: ourstage-dev\n:tracker: Bug\n:api_key: 0bZBFNh9JcU9bnNY48xW\n:priority: 6\n:author: splain\n:hook_quarantine: 30\n", "notifier"=>{"name"=>"Airbrake Notifier", "version"=>"3.1.1", "url"=>"https://github.com/airbrake/airbrake"}, "error"=>{"class"=>"AirbrakeTestingException", "message"=>"AirbrakeTestingException: Testing airbrake via \"rake airbrake:test\". If you can see this, it works.", "backtrace"=>{"line"=>[{"number"=>"412", "file"=>"[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/callbacks.rb", "method"=>"_run__881828658941854460__process_action__4488049970181265314__callbacks"}, {"number"=>"386", "file"=>"[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/callbacks.rb", "method"=