Skip to content

Instantly share code, notes, and snippets.

View CpuID's full-sized avatar
🏠
Working from home

Nathan Sullivan CpuID

🏠
Working from home
View GitHub Profile
@CpuID
CpuID / gist:6589692
Created September 17, 2013 03:19
weird SSH timeout issue (using rye / Net::SSH)
Failure on thread threadname: connection closed by remote host
/var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/transport/packet_stream.rb:87:in `next_packet': connection closed by remote host (Net::SSH::Disconnect)
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:172:in `poll_message'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:167:in `loop'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:167:in `poll_message'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:454:in `dispatch_incoming_packets'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:216:in `preprocess'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:200:in `process'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
from /var/lib/gems/1.8/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop_forever'
.......
2014/07/30 03:46:08 /usr/local/packer/bin/packer-builder-amazon-ebs: 2014/07/30 03:46:08 Waiting for state to become: running
2014/07/30 03:46:08 /usr/local/packer/bin/packer-builder-amazon-ebs: 2014/07/30 03:46:08 Waiting for state to become: running
2014/07/30 03:46:08 /usr/local/packer/bin/packer-builder-amazon-instance: 2014/07/30 03:46:08 Waiting for state to become: running
2014/07/30 03:46:09 /usr/local/packer/bin/packer-builder-amazon-ebs: 2014/07/30 03:46:09 Waiting for state to become: running
2014/07/30 03:46:10 /usr/local/packer/bin/packer-builder-amazon-instance: 2014/07/30 03:46:10 Waiting for state to become: running
2014/07/30 03:46:10 /usr/local/packer/bin/packer-builder-amazon-ebs: 2014/07/30 03:46:10 Waiting for state to become: running
2014/07/30 03:46:10 /usr/local/packer/bin/packer-builder-amazon-ebs: 2014/07/30 03:46:10 Waiting for state to become: running
2014/07/30 03:46:10 /usr/local/packer/bin/packer-builder-amazon-ebs: 2014/07/30 03:46:10 Waiting for state to become: runnin
@CpuID
CpuID / grub_first_kernel_version.sh
Last active August 29, 2015 14:13
Get first kernel version to be booted from Grub Config (menu.lst) - Ubuntu Kernels
#!/usr/bin/env bash
grub_config="/boot/grub/menu.lst"
if [ ! -f "${grub_config}" ]; then
echo "Grub config ${grub_config} not found."
exit 1
fi
boot_default=$(grep ^default "${grub_config}" | awk '{print $2}')
let boot_default_plus_1=$boot_default+1
@CpuID
CpuID / gist:90d366c1dc55f598158c
Created March 5, 2015 22:19
kitchen-docker Failure
, [2015-03-06T07:06:46.573417 #7619] ERROR -- Kitchen: /home/nathan/.rvm/gems/ruby-2.1.5@chef-repo/bin/kitchen:23:in `<main>'
E, [2015-03-06T07:06:46.573429 #7619] ERROR -- Kitchen: /home/nathan/.rvm/gems/ruby-2.1.5@chef-repo/bin/ruby_executable_hooks:15:in `eval'
E, [2015-03-06T07:06:46.573459 #7619] ERROR -- Kitchen: /home/nathan/.rvm/gems/ruby-2.1.5@chef-repo/bin/ruby_executable_hooks:15:in `<main>'
E, [2015-03-06T07:06:46.573477 #7619] ERROR -- Kitchen: ----------------------
I, [2015-03-06T08:15:28.656671 #8367] INFO -- Kitchen: -----> Starting Kitchen (v1.2.1)
E, [2015-03-06T08:15:28.696113 #8367] ERROR -- Kitchen: ------Exception-------
E, [2015-03-06T08:15:28.696375 #8367] ERROR -- Kitchen: Class: Kitchen::UserError
E, [2015-03-06T08:15:28.696423 #8367] ERROR -- Kitchen: Message: You must first install the Docker CLI tool http://www.docker.io/gettingstarted/
E, [2015-03-06T08:15:28.696449 #8367] ERROR -- Kitchen: ---Nested Exception---
E, [2015-03-06T08:15:28.696469 #8367] ERROR -- Kitchen: Class: Ki
@CpuID
CpuID / keybase.md
Created April 7, 2015 18:07
keybase.md

Keybase proof

I hereby claim:

  • I am CpuID on github.
  • I am cpuid (https://keybase.io/cpuid) on keybase.
  • I have a public key whose fingerprint is C33B 3A14 F384 3356 38E5 9FA6 2DAE 0B3A 3AD3 F5D6

To claim this, I am signing this object: