Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Miscellaneous Python scripts

branch: master
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.

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.

Something went wrong with that request. Please try again.