Skip to content

Instantly share code, notes, and snippets.

@sc68cal
sc68cal / ping.txt
Last active November 5, 2015 14:10
root@atlas:~ # ping6 fe80::6e9c:edff:feba:ec40%em0
PING6(56=40+8+8 bytes) fe80::ea40:f2ff:feed:aa7%em0 --> fe80::6e9c:edff:feba:ec40%em0
^C
--- fe80::6e9c:edff:feba:ec40%em0 ping6 statistics ---
22 packets transmitted, 0 packets received, 100.0% packet loss
scollins@Uller ~/Downloads » grep -b 'DESIGNATOR' 1033-program-foia-may-2014.csv\?raw=true
7309982:IL,MADISON,1240-01-142-9546,"RANGE FINDER-TARGET DESIGNATOR,LASER",2,Each,112734,2011-02-10
7381840:IL,MENARD,1240-01-142-9546,"RANGE FINDER-TARGET DESIGNATOR,LASER",1,Each,112734,2012-05-07
7935077:IN,LAGRANGE,1240-01-142-9546,"RANGE FINDER-TARGET DESIGNATOR,LASER",2,Each,112734,2011-03-01
8459788:KY,BOYLE,1240-01-575-1124,"RANGE FINDER-TARGET DESIGNATOR,LASER",1,Each,73929,2012-06-14
14021313:PA,BLAIR,1240-01-142-9546,"RANGE FINDER-TARGET DESIGNATOR,LASER",2,Each,112734,2011-09-02
14106941:PA,PHILADELPHIA,1240-01-142-9546,"RANGE FINDER-TARGET DESIGNATOR,LASER",1,Each,112734,2012-01-25
15426153:TX,CASS,1260-99-551-6393,"TRIPOD,TARGET DESIGNATOR,LASER",1,Each,0,2011-12-13
16572451:TX,WICHITA,1240-01-142-9546,"RANGE FINDER-TARGET DESIGNATOR,LASER",1,Each,112734,2011-08-12
16872584:VA,ARLINGTON,1240-01-575-1124,"RANGE FINDER-TARGET DESIGNATOR,LASER",2,Each,73929,2013-01-22
[14:04] <-- | Guest73669 [~sree@72.28.92.15] has quit (K-Lined)
[14:04] <-- | Sukhdev [~textual@72.28.92.15] has quit (K-Lined)
[14:04] <-- | ashleighfarnham [~ashleighf@72.28.92.15] has quit (K-Lined)
[14:04] <-- | rbradfor [~rbradfor@72.28.92.15] has quit (K-Lined)
[14:04] <-- | salv-orlando [~salv_orla@72.28.92.15] has quit (K-Lined)
[14:04] <-- | hdd [~chris@72.28.92.15] has quit (K-Lined)
[14:04] <-- | ayoung [~ayoung@72.28.92.15] has quit (K-Lined)
[14:04] <-- | nikeshm [~nikeshm@72.28.92.15] has quit (K-Lined)
[14:04] <-- | rossella_s [~rossella@72.28.92.15] has quit (K-Lined)
[14:04] <-- | dims [~dims@72.28.92.15] has quit (K-Lined)
@sc68cal
sc68cal / ipv6_in_virtualbox.md
Last active August 29, 2015 14:20
IPv6 in VirtualBox

VirtualBox allows the creation of IPv6 networking prefixes on Host-Only adapters. It will statically assign an address to the interface, however it will not advertise the route. Meaning that guest VMs that are attached to the Host-Only network will not configure their IPv6 stacks automatically.

radvd (or rtadvd on *BSD) can be configured to advertise the IPv6 prefix that has been created in VirtualBox, however there is an issue in some operating systems, where the IPv6 stack cannot simultaneously be a host as well as a router (forward packets).

Linux Support

https://lkml.org/lkml/2011/7/26/482

scollins@Sean-Collins-MBPr15 ~/src/philly-bike-router ±master⚡ » python philly-bike-router/cli.py
11th & Pine, Kahn Park is nearly full - 2 spaces left
33rd & Market is nearly empty - 1 bike left
15th & Spruce is nearly empty - 2 bikes left
38th & Lancaster has no bikes
4th & Walnut, NPS is nearly empty - 2 bikes left
12th & Filbert has no bikes
6th & Race has no bikes
University City Station is nearly empty - 1 bike left
18th & JFK has no bikes
>>> API_ENDPOINT
'https://api.phila.gov/bike-share-stations/v1'
>>> r = requests.get(url=API_ENDPOINT)
>>> r.ok
False
>>> r.content
'<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body bgcolor="white">\r\n<center><h1>403 Forbidden</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n'
>>> r = requests.get(API_ENDPOINT, headers={'User-Agent': 'curl/7.37.1'})
>>> r.ok
True
docs runtests: PYTHONHASHSEED='2794469160'
docs runtests: commands[0] | python setup.py build_sphinx
running build_sphinx
Running Sphinx v1.1.3
loading pickled environment... done
building [html]: all source files
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] section1
looking for now-outdated files... none found
pickling environment... done
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import netaddr
>>> netaddr.valid_ipv4("192.168")
True
>>> netaddr.valid_ipv4("192.168.")
False
Buzzwords in OpenStack by year:
2013 - Platform as a Service
2014 - "Containers"
2015 - "NFV"
@sc68cal
sc68cal / dhcp6c.conf
Last active June 8, 2016 18:05
FreeBSD IPv6 configuration for Comcast
interface em0 {
send ia-pd 0;
send ia-na 0;
};
id-assoc na 0 { };
id-assoc pd {
prefix-interface alc0 {
sla-id 1;