Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am routelastresort on github.
  • I am routelastresort (https://keybase.io/routelastresort) on keybase.
  • I have a public key ASDQAxLHSZCBvruoFfgOxzTZG7gPyInfxIyku_9go4EW6Qo

To claim this, I am signing this object:

rm -rfv /etc/foreman-proxy/*ssl*
rm -rfv /etc/foreman/old-certs
rm -rfv /etc/foreman/*.pem
rm -rfv /var/lib/puppet/ssl
rm -rfv /root/ssl-build
foreman-installer -v --certs-regenerate-ca=true --certs-regenerate=true \
--foreman-foreman-url "https://bread.usersys.redhat.com" \
--foreman-servername sat6.example.com \
--certs-ca-common-name sat6.example.com \
@routelastresort
routelastresort / gist:89ec4d7edffc151750cf
Created October 31, 2015 05:54 — forked from kuenishi/gist:3825178
Accessing to VM via serial console at VMware Fusion 5

Environment

  • Using FreeBSD
  • Mountain Lion
  • VMware Fusion 5
  • Your VMware is installed at '/Applications/VMware Fusion.app'
  • Command Line tools are at '/Applications/VMware Fusion.app/Contents/Library'
  • especially vmrun

Keybase proof

I hereby claim:

  • I am routelastresort on github.
  • I am routelastresort (https://keybase.io/routelastresort) on keybase.
  • I have a public key whose fingerprint is 98F2 0E69 CEF8 F364 3E21 A3C7 751D 3ACD 03FC 92C8

To claim this, I am signing this object:

@routelastresort
routelastresort / gist:5a4860a1b7559d5f653e
Created October 20, 2014 21:10
Vagrant destroy issue with vagrant-vmware-workstation plugin installed
⌁71% [death:~/deploy/cluster/vmware] 2s 1 $ vagrant destroy bd9a58e --debug
INFO global: Vagrant version: 1.6.5
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
#!/usr/bin/env python2.7
from pprint import pprint
from multiprocessing.dummy import Pool
from functools import partial
from jnpr.junos import Device
from jnpr.junos.op.arp import ArpTable
user_name = 'tyler'

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@routelastresort
routelastresort / gist:6480129
Created September 7, 2013 22:56
yet another vagrant debug log
death@hatwobble:~/deploy/vagrant$ VAGRANT_LOG=debug vagrant up vsrx1
INFO global: Vagrant version: 1.3.0
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/kernel_v1/plugin.rb
INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/hosts/bsd/plugin.rb
INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/hosts/freebsd/plugin.rb
INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/hosts/slackware/plugin.rb
INFO manager: Registered plugin: Slackware host
@routelastresort
routelastresort / gist:6478409
Created September 7, 2013 19:17
post-Vagrant .vmx file
.encoding = "UTF-8"
annotation = "JunosV Firefly OVF Template"
cleanShutdown = "TRUE"
config.version = "8"
cpuid.coresPerSocket = "2"
displayName = "vsrx1: default"
displayname = "vsrx-flow"
ethernet0.addressType = "generated"
ethernet0.connectionType = "nat"
ethernet0.present = "TRUE"
@routelastresort
routelastresort / gist:6478385
Created September 7, 2013 19:13
pre-Vagrant .vmx file
#!/usr/bin/vmware
.encoding = "UTF-8"
displayname = "vsrx-flow"
annotation = "JunosV Firefly OVF Template"
guestos = "freebsd"
virtualhw.version = "7"
config.version = "8"
numvcpus = "2"
cpuid.coresPerSocket = "2"
memsize = "1024"