Skip to content

Instantly share code, notes, and snippets.

View mcr's full-sized avatar

Michael Richardson mcr

View GitHub Profile
mcr@roujump:~$ cat /etc/uwsgi/apps-available/beaumont.yml
# plugins: rack
uwsgi:
rvm-path: /usr/local/rvm
uid: beaumont
socket: 10.10.32.12:3031
chdir: /sg1/web/beaumont/beaumont/current
rack: /sg1/web/beaumont/beaumont/current/config.ru
post-buffering: 4096
@mcr
mcr / gist:2238f7ec2b58909d0124
Created December 30, 2015 00:10
irssi screw up
19:05 -!- Irssi: Looking up irc.freenode.net
19:05 -!- Irssi: Connecting to irc.freenode.net [91.217.189.42] port 6667
19:05 -!- Irssi: Unable to connect server irc.freenode.net port 6667 [Cannot
assign requested address: 104.200.31.36]
dooku-[~] mcr 10265 %mtr -4 -r -n obiwan.sandelman.ca
HOST: dooku.sandelman.ca Loss% Snt Last Avg Best Wrst StDev
1.|-- 192.168.0.1 50.0% 10 3.3 71.7 2.8 335.6 147.6
2.|-- 7.11.162.137 80.0% 10 11.9 28.4 11.9 44.9 23.3
3.|-- 67.231.220.201 50.0% 10 198.1 99.5 13.7 232.7 106.7
4.|-- 69.63.253.153 70.0% 10 88.0 80.6 24.8 129.2 52.6
5.|-- 24.137.205.70 60.0% 10 59.0 29.3 13.4 59.0 20.5
6.|-- 209.87.239.146 70.0% 10 11.1 15.4 11.1 22.3 6.0
7.|-- 209.87.255.160 80.0% 10 17.8 119.4 17.8 220.9 143.6
obiwan-[~] mcr 10056 %ping ottix.net
PING ottix.net (192.231.228.2) 56(84) bytes of data.
From core-2-po1-983.storm.ca (209.87.239.145) icmp_seq=4 Destination Host Unreachable
^C
--- ottix.net ping statistics ---
5 packets transmitted, 0 received, +1 errors, 100% packet loss, time 4001ms
[1] 28688 exit 1 ping ottix.net
obiwan-[~] mcr 10057 %telnet ottix.net 80
Trying 2001:410:90ff::2...
### Keybase proof
I hereby claim:
* I am mcr on github.
* I am mcr314 (https://keybase.io/mcr314) on keybase.
* I have a public key whose fingerprint is 6ECC 8B13 383F A944 C0E3 7BA8 808B 70FB DDD0 DD65
To claim this, I am signing this object:
stack01-[~] mcr 1012 %sudo snf-manage network-list
id name user.uuid state public subnet.ipv4 gateway.ipv4 link mac_prefix drained floating_ip_pool
---------------------------------------------------------------------------------------------------------------------------
2 public_network None ACTIVE True 10.0.0.0/24 10.0.0.1 internet aa:00:0 False True
3 hosted None ACTIVE True 10.10.32.0/22 10.10.32.1 internet aa:00:0 False False
stack02# /usr/lib/ganeti/iallocators/hail --print-nodes --verbose /home/mcr/k6.js
Warning: cluster has inconsistent data:
- node stack01.batcave.credil.org is missing 96 MB ram and 111 GB disk
Received request: Allocate (Instance {name = "haha", alias = "haha", mem = 128, dsk = 384, disks = [256], vcpus = 1, runSt = Running, pNode = 0, sNode = 0, idx = -1, util = DynUtil {cpuWeight = 1.0, memWeight = 1.0, dskWeight = 1.0, netWeight = 1.0}, movable = True, autoBalance = True, diskTemplate = DTDrbd8, spindleUse = 1, allTags = [], exclTags = [], arPolicy = ArNotEnabled, nics = [Nic {mac = Just "aa:00:00:ff:f4:ae", ip = Nothing, mode = Nothing, link = Nothing, bridge = Nothing, network = Nothing}]}) 2
Initial cluster status:
F Name t_mem n_mem i_mem x_mem f_mem r_mem t_dsk f_dsk pcpu vcpu pcnt scnt p_fmem p_fdsk r_cpu lCpu lMem lDsk lNet
stack01 8188 7449 0 96 643 0 594 482 4 0 0 0 0.0785 0.8119 0.00 0.000 0.000 0.000 0.000
stack02 4060 511 0 51 3498
$.ajax({ "url": agenda_url,
"type": "POST",
"data": { "public" : new_value },
"dataType": "json",
"success": function(result) {
/* result is a json object */
value = result["public"];
log("new value "+value);
$(span_to_replace).html(value);
}});
obiwan-[~] mcr 10002 %traceroute6 2607:f2c0:f00f:f200:44da:87eb:246b:a1e7
traceroute to 2607:f2c0:f00f:f200:44da:87eb:246b:a1e7 (2607:f2c0:f00f:f200:44da:87eb:246b:a1e7) from 2607:f0b0:f:2::247, port 33434, from port 59845, 30 hops max, 60 bytes packets
1 2607:f0b0:f:2::241 (2607:f0b0:f:2::241) 0.652 ms 0.561 ms 0.563 ms
2 access-1-g0-2.storm.ca (2607:f0b0:0:5:209:87:239:139) 7.255 ms 6.975 ms 7.052 ms
3 core-2-g0-2.storm.ca (2607:f0b0:0:5:209:87:239:129) 6.943 ms 6.993 ms 6.898 ms
4 core-3-bdi1820.storm.ca (2607:f0b0:0:50:209:87:239:99) 17.463 ms 16.900 ms 17.475 ms
5 gw-he.ip6.torontointernetxchange.net (2001:504:1a::34:112) 19.090 ms 18.638 ms 18.653 ms
6 teksavvy-solutions-inc.10gigabitethernet15-2.core1.tor1.he.net (2001:470:1:477::2) 17.442 ms 17.699 ms 17.560 ms
7 node-66fkdz9gw7207f2p.ipv6.teksavvy.com (2607:f2c0:1:2140::11) 20.331 ms 19.957 ms 19.411 ms
8 node-77b74wd0xqcb4qfittw.ipv6.teksavvy.com (2607:f2c0:f00f:f200:5054:ff:fe8f:7e84) 27.740 ms 27.555 m
austerlitz-[~] mcr 1023 %sudo rdisc6 eth0
Soliciting ff02::2 (ff02::2) on eth0...
Hop limit : 64 ( 0x40)
Stateful address conf. : No
Stateful other conf. : No
Router preference : low
Router lifetime : 1800 (0x00000708) seconds
Reachable time : unspecified (0x00000000)
Retransmit time : unspecified (0x00000000)