Skip to content

Instantly share code, notes, and snippets.

View aspiers's full-sized avatar

Adam Spiers aspiers

View GitHub Profile
@aspiers
aspiers / a.rb
Created January 15, 2014 13:16
route -n on laptop
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.70.61.252 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 10.123.0.1 255.0.0.0 UG 0 0 0 tun0
10.70.61.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
10.123.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
137.65.0.0 10.123.0.1 255.255.0.0 UG 0 0 0 tun0
147.2.0.0 10.123.0.1 255.255.0.0 UG 0 0 0 tun0
149.44.0.0 10.123.0.1 255.255.0.0 UG 0 0 0 tun0
151.155.128.0 10.123.0.1 255.255.128.0 UG 0 0 0 tun0
@aspiers
aspiers / a.rb
Created January 15, 2014 13:16
route -n on workstation
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.70.61.252 0.0.0.0 UG 0 0 0 br0
10.0.0.0 10.70.61.113 255.0.0.0 UG 0 0 0 br0
10.70.61.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
137.65.0.0 10.70.61.113 255.255.0.0 UG 0 0 0 br0
147.2.0.0 10.70.61.113 255.255.0.0 UG 0 0 0 br0
149.44.0.0 10.70.61.113 255.255.0.0 UG 0 0 0 br0
151.155.128.0 10.70.61.113 255.255.128.0 UG 0 0 0 br0
@aspiers
aspiers / a.rb
Created January 15, 2014 13:14
ovs-vsctl show on workstation
35821d62-16c1-4422-9b77-fb6c5ef5c79c
Bridge "crowbar-br0"
Port "gre0"
Interface "gre0"
type: gre
options: {remote_ip="10.70.61.113"}
Port "vnet0"
Interface "vnet0"
Port "crowbar-br0"
Interface "crowbar-br0"
@aspiers
aspiers / a.rb
Created January 15, 2014 13:14
ip a on workstation
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000
link/ether 18:03:73:df:7d:4f brd ff:ff:ff:ff:ff:ff
inet 169.254.8.6/16 brd 169.254.255.255 scope link eth0:avahi
inet6 fe80::1a03:73ff:fedf:7d4f/64 scope link
valid_lft forever preferred_lft forever
@aspiers
aspiers / a.rb
Created January 15, 2014 13:14
ip a on laptop
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether f0:de:f1:cb:62:79 brd ff:ff:ff:ff:ff:ff
inet 10.70.61.113/24 brd 10.70.61.255 scope global eth0
valid_lft forever preferred_lft forever
@aspiers
aspiers / a.rb
Created January 15, 2014 13:14
ovs-vsctl show on laptop
d799868f-951d-4d57-a590-44137817d59c
Bridge "crowbar-br0"
Port "vnet1"
Interface "vnet1"
Port "gre0"
Interface "gre0"
type: gre
options: {remote_ip="10.70.61.108"}
Port "vnet0"
Interface "vnet0"
;;; This was originally installed by package-install.el.
;;; This provides support for the package system and
;;; interfacing with ELPA, the package archive.
(defvar as-elpa-packages
'(
;; MELPA
edit-server-htmlize
flx-ido ;; flx is flex with better ordering
guide-key
@aspiers
aspiers / unblock.sh
Last active August 16, 2019 13:41
shell functions for unblocking stuck nodes and proposals in Crowbar
The code which used to be here is now in the crowbar CLI. FIXME: provide details
col1_min = 50
col1_max = 200
col3_min = 200
margin = 3
fixSizes = ->
$(".row").each (i, row) =>
row_width = $(row).width()
col2_width = $(row).find(".col2").outerWidth(true)
col3_width = $(row).find(".col3").outerWidth(true)
app@host:~$ /usr/local/rvm/bin/rvm info
ruby-1.9.3-p194:
system:
uname: "Linux host 2.6.32-5-686-bigmem #1 SMP Fri May 10 09:11:45 UTC 2013 i686 GNU/Linux"
system: "debian/6/i386"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)"
zsh: "/usr/bin/zsh => zsh 4.3.10 (i686-pc-linux-gnu)"