Skip to content

Instantly share code, notes, and snippets.

View juliandunn's full-sized avatar

Julian C. Dunn juliandunn

View GitHub Profile
@juliandunn
juliandunn / traceroute-episode-IV-a-new-hope.txt
Last active December 12, 2015 08:59
here's the full traceroute with credits
zaphod:tmp$ traceroute 216.81.59.173
traceroute to 216.81.59.173 (216.81.59.173), 64 hops max, 52 byte packets
1 nectar (192.168.5.1) 3.793 ms 0.745 ms 11.977 ms
2 cpe-72-225-160-1.nyc.res.rr.com (72.225.160.1) 86.680 ms 35.550 ms 37.859 ms
3 tenge-0-2-0-6-nycmnyr-rtr01.nyc.rr.com (24.168.135.169) 50.914 ms 23.809 ms 13.318 ms
4 bun120.nycmnytg-rtr001.nyc.rr.com (184.152.112.63) 20.660 ms 19.192 ms 20.846 ms
5 bun6-nycmnytg-rtr002.nyc.rr.com (24.29.148.250) 20.429 ms 16.775 ms 15.689 ms
6 107.14.19.24 (107.14.19.24) 15.007 ms 15.276 ms 16.220 ms
7 ae-1-0.pr0.nyc20.tbone.rr.com (66.109.6.163) 17.830 ms 18.652 ms
107.14.17.171 (107.14.17.171) 38.915 ms
@juliandunn
juliandunn / chefspec.txt
Created January 26, 2013 05:51
chefspec.txt
sm-nyc-jdunn:foo (feature/SOP-1342)$ rspec spec/server_spec.rb
================================================================================
Error Resolving Cookbooks for Run List:
================================================================================
Unexpected Error:
-----------------
NoMethodError: undefined method `post_rest' for nil:NilClass
@juliandunn
juliandunn / java.env
Created January 24, 2013 21:36 — forked from logic/java.env
ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
ZOO_LOG_DIR="/var/log/zookeeper/"
@juliandunn
juliandunn / pgdg.rb
Created January 24, 2013 03:57
Example of PostgreSQL global development group Chef recipe
#
# Cookbook Name:: smpostgresql
# Recipe:: pgdg
#
# Copyright 2012-2013 SecondMarket Labs, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@juliandunn
juliandunn / gist:4596902
Created January 22, 2013 18:24
veewee doesn't support multiple postinstalls when the first one reboots the box
Redirecting to /bin/systemctl stop sshd.service
/Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:22:in `select': closed stream (IOError)
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:22:in `io_select'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/transport/packet_stream.rb:73:in `available_for_read?'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/transport/packet_stream.rb:85:in `next_packet'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:171:in `block in poll_message'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:166:in `loop'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:166:in `poll_message'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:451:in `dispatch_incoming_pac
@juliandunn
juliandunn / gist:4531686
Created January 14, 2013 17:26
awesome git error message when deleting nonexistent remote branch
mycomputer:recipes (master)$ git push origin -u :feature/whatever
error: unable to push to unqualified destination: feature/whatever
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to '[email protected]:XXXXXX.git'
@juliandunn
juliandunn / nexus-cookbook-no-worky.txt
Created December 4, 2012 16:01
Problems in Nexus cookbook
Generated at Tue Dec 04 15:15:51 +0000 2012
NoMethodError: nexus_settings[baseUrl] (nexus::default line 211) had an error: NoMethodError: undefined method `code' for #<Array:0x7fa964f0d768>
/usr/lib64/ruby/gems/1.8/gems/nexus_cli-0.7.3/lib/nexus_cli/nexus_oss_remote.rb:119:in `upload_global_settings'
/usr/lib64/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
/usr/lib64/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
/usr/lib64/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
/usr/lib/ruby/1.8/net/http.rb:543:in `start'
/usr/lib64/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/usr/lib64/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
@juliandunn
juliandunn / vagrant-vbguest-error.txt
Created November 23, 2012 05:00
vagrant-vbguest cannot load such file
sm-nyc-jdunn:fedora17$ vagrant up
/Users/jdunn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require': cannot load such file -- vagrant-vbguest (LoadError)
from /Users/jdunn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /Users/jdunn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/vagrant-vbguest-0.5.0/lib/vagrant_init.rb:3:in `<top (required)>'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:68:in `load'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:68:in `block (2 levels) in load!'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:42:in `each'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:42:in `block in load!'
from /Users/jdunn/.rvm/gems/ruby-1.9.3-p327
@juliandunn
juliandunn / bashton-upgrade-kernel-fail.txt
Created October 23, 2012 16:12
centos6 bashton can't upgrade kernel
Xen Minimal OS!
start_info: 0x1890000(VA)
nr_pages: 0x1e0000
shared_inf: 0xbde8d000(MA)
pt_base: 0x1893000(VA)
nr_pt_frames: 0x11
mfn_list: 0x990000(VA)
mod_start: 0x0(VA)
@juliandunn
juliandunn / gist:3933966
Created October 22, 2012 20:31
What an Amazon EC2 outage looks like to a guest system. https://t.co/lkgm97OZ
INFO: task kjournald:252 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kjournald D ffff880001004460 0 252 7 274 243 (L-TLB)
ffff8800674c5cf0 0000000000000246 ffff88006901c040 000007000000015c
000000000000000a ffff880069b197a0 ffffffff80502b80 0000000000000fc8
ffff880069b19988 ffffffff80263929
Call Trace:
[<ffffffff80263929>] _spin_lock_irqsave+0x9/0x14
[<ffffffff8026f1df>] do_gettimeofday+0x1c1/0x1dc
[<ffffffff80215dd8>] sync_buffer+0x0/0x3f