Skip to content

Instantly share code, notes, and snippets.

View mcr's full-sized avatar

Michael Richardson mcr

View GitHub Profile
mcr@c3p0:~/cm10-1$ breakfast tf300t
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/tf300t/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_tf300t". Stop.
Device tf300t not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 59, in <module>
result = json.loads(urllib2.urlopen(githubreq).read())
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
@mcr
mcr / gist:5373547
Created April 12, 2013 17:09
problems with gerrit.
c3p0-[~/jellybean/external/qemu] mcr 1061 %repo upload -t
Upload project external/qemu/ to remote branch refs/tags/android-4.2.2_r1:
branch netbridge ( 1 commit, Fri Apr 12 10:04:52 2013 -0500):
38eb3618 added -netbridge option to bridge wifi
to https://android-review.googlesource.com/ (y/N)? y
Counting objects: 15, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.38 KiB, done.
Total 8 (delta 7), reused 0 (delta 0)
@mcr
mcr / gist:5445510
Last active December 16, 2015 13:59
598c598
< qq|<th>| . $locale->text('Account') . qq|</th>|;
---
> qq|<th>| . $locale->text(^GAccount') . qq|</th>|;
608c608
< </tr>
---
> 4/tr>
610c610
< <tr>
@mcr
mcr / gist:6cd49b65865888ce8d3f
Last active August 29, 2015 14:03
6tisch process
nodeA nodeB
| |
+--------->| IEEE802.15.4e type: DATA
| POST | CoAP Header: POST (T=CON)
| | Uri-Path: "6t/6/ng"
| | Payload: CBOR(
| | Opcode=RESERVATION,
| | RequiredBW,
| | SlotframeID,
| | TrackID,
austerlitz-[~] mcr 1002 %traceroute6 rhayader6.tricolour.ca
traceroute to rhayader6.tricolour.ca (2001:470:b13d:1::4) from 2001:4830:116e:1:52e5:49ff:fe56:9b57, port 33434, from port 37780, 30 hops max, 60 bytes packets
1 pink.gatineau.credil.org (2001:4830:116e:1::1) 0.126 ms 0.123 ms 0.278 ms
2 * gw-341.bos-01.us.sixxs.net (2001:4830:1100:154::1) 31.355 ms 31.541 ms
3 sixxs-ic-1139-bos.customer.occaid.net (2001:4830:e1:b::2) 31.374 ms 31.558 ms 34.442 ms
4 dcr01-ve402.bstn01.occaid.net (2001:4830:e1:b::1) 31.565 ms 34.465 ms 30.906 ms
5 bsn01-ip-rt-gi0-1-219.occaid.net (2001:4830:ff:11::1) 35.446 ms 31.480 ms 31.583 ms
6 ewr01-ip-rt-gi0-0-1.occaid.net (2001:4830:ff:10::1) 37.276 ms 38.159 ms 37.269 ms
7 bbr01-g1-0.stng01.occaid.net (2001:4830:ff:f150::2) 49.139 ms 49.417 ms 50.223 ms
8 ibr01-g0-1.atln01.occaid.net (2001:4830:ff:f151::3) 49.433 ms 50.362 ms 50.708 ms
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)
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
$.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);
}});
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
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