Miscellaneous Python scripts
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
bberry.py
bib2json.py
cal.py
filebomb.py
forkbomb.py
ghpy.py
ip2as.py
jsonpretty.py
num.py
pdump.py
skrype.py
slots.py
tdump2txt.py

README.md

Mort's Python Scripts

bberry

Library to parse RIM Blackberry backup (.IPD) files. Presents as an enumeration of records. If executed, will attempt to print all contacts as v3.0 vCards.

bib2json

Convert BibTeX files to JSON. Relies on well-formed and reasonably formatted input (ie., it's not a fully fledged BibTeX parser). Running it through Emacs BibTeX-mode's 'validate' and 'format' should suffice.

~/src/python-scripts.git/bib2json.py \
  -s ~/me.git/bibs.git/strings.bib   \
  ~/me.git/bibs.git/rmm-*.bib >| papers.json

cal

Replacement for Unix cal command: similar output, more options. Highlights headers and current date. Defaults to Monday as first day-of-week.

Now deprecated in favour of https://github.com/mor1/ocal.

ghpy

Wrapper to interact with GitHub using REST API. Currently implements one command, to retrieve mapping of private collaborators to the private repositories they collaborate on.

ip2as

Lookup the AS owning an IP address, using WHOIS database data. Follows the traceroute-nanog algorithm.

jsonpretty

Pretty print JSON taken from stdin.

num

Print number in selection of useful bases (bin, dec, oct, hex).

skrype

Skype log-parser, presenting a sequence of records. If run as script, splices all .DBB logfiles to print in sequence-number order.

slots

Given set of people's available times, compute number of people that can make each slot. Useful for selecting a time for group meetings.

tdump2txt

Filter to pretty print tcpdump -x output to the right of the hex input: ASCII where possible, hex where not.