This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'makepl_arg' => q[PREFIX=/home/emile/tmp/prefix INSTALLSITELIB=/home/emile/perl INSTALLARCHLIB=/home/emile/perl LIB=/home/emile/perl], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import fileinput | |
from ripe.atlas.sagan import DnsResult | |
def process(line): | |
result = DnsResult(line) | |
try: | |
print("{}\t{}\t{}\t{}".format( | |
result.created.strftime('%s'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import fileinput | |
from ripe.atlas.sagan import DnsResult | |
cache={} | |
latest={} | |
BIN = 3600 | |
def process(line): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def get_ixp_info(): | |
## ccix contains country code with lists of IXP peering LANs | |
ccix = {} | |
## contains useful info on peering lans, indexed by peeringdb ix_id | |
ix2lans = {} | |
r_ixlan = requests.get("https://beta.peeringdb.com/api/ixlan?depth=2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Prototype tool for bulk IP->AS lookups for a specific date | |
Downloads RIS data locally (using CAIDA BGPSTREAM) | |
expects IP addresses/prefixes on STDIN (IPv4 and IPv6) | |
takes a single command-line argument which is the DATE for which to download the table (any format convertable by arrow will do) | |
example use: | |
cat file_with_maaaaany_ips | ./bulk-ris-lookup.py 2009-03-22 | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
## usage | |
## ./create-latencymon.py <prb> <msm>,<msm>,<msm>,<msm> > index.html | |
## then load html in a browser | |
prb_str = sys.argv[1] | |
prb_list = prb_str.split(',') | |
msm_str = sys.argv[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import requests | |
import time | |
ips = set() | |
for line in sys.stdin: | |
# assume its well formed | |
line = line.rstrip('\n') | |
ips.add( line ) |