Skip to content

Instantly share code, notes, and snippets.

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"=
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
@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'
@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 / 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 / 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
include("revisions-lib.inc");
tag_summary = "The remote server's SSL/TLS OpenSSL implementation is vulnerable for the heartbleed attack.";
tag_solution = "Update to OpenSSL 1.0.1g or later.";
if (description) {
script_id(999999);
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_tag(name:"risk_factor", value:"Critical");
@mikesplain
mikesplain / default.rb
Created July 28, 2014 16:30
Find box ip's
## Figure out this box's ips
ips = []
node['network']['interfaces'].each do |int|
int[1]['addresses'].each do | ip, params |
if params['family'] == ('inet')
ips << ip
end
end
end
input {
stdin {
type => "stdin-type"
}
file {
type => "syslog"
path => [ "/var/log/*.log", "/var/log/*/*.log", "/var/log/messages", "/var/log/syslog" ]
start_position => "beginning"
}
after_success:
- git config --global user.email "ci@traivs-ci.org"
- git config --global user.name "Travis CI"
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add travis-openstack-clients-cookbook
- echo -n $RELEASE_{00..30} >> release_base64
- base64 --decode --ignore-garbage release_base64 > release.pem