Skip to content

Instantly share code, notes, and snippets.

View robgjansen's full-sized avatar

Rob Jansen robgjansen

View GitHub Profile
@robgjansen
robgjansen / count_state.py
Created November 30, 2020 18:36
Code for running a speed test on relays in the Tor network.
#!/usr/bin/env python36
import sys
import os
import argparse
import time
import logging
import json
def main():
@robgjansen
robgjansen / get_gh_shadow_report.py
Created August 28, 2020 02:32
Fetch milestones and related issues from Shadow repo.
import sys
from github import Github
'''
pip install PyGithub
https://pygithub.readthedocs.io/en/latest
'''
#ACCESS_TOKEN="xxx"
ACCESS_TOKEN=None
@robgjansen
robgjansen / blogger2octopress.py
Created November 5, 2015 02:46
Converts an XML dump from blogger into posts for Octopress. Title, published date, updated date, and content are kept; everything else including comments are ignored.
#!/usr/bin/env python
import sys, os
from lxml import etree
'''
USAGE: python blogger2octopress.py blogger_dump.xml
Then check the _drafts and _posts folders.