Skip to content

Instantly share code, notes, and snippets.

View nrrb's full-sized avatar
💗

Nicholas Bennett nrrb

💗
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
@nrrb
nrrb / index.html
Last active August 29, 2015 14:06
Laundry Cam Setup Notes with Logitech C210 on Ubuntu 14.04 x64
<html>
<head>
<title>LaundryCam</title>
<link rel="apple-touch-icon-precomposed" href="./apple-touch-icon.png" />
<meta http-equiv="refresh" content="5">
</head>
<body>
<img src="./snap.jpg">
</body>
</html>
@nrrb
nrrb / notes.md
Last active October 22, 2015 15:37
Setting Up Anonymous Rotating Proxies With Tor

Running Your Own Anonymous Rotating Proxies

  • Install Ubuntu 14.04 x64

  • Install Tor: https://www.torproject.org/docs/debian.html.en

  • Install packages: sudo apt-get install build-essential

  • Change to superuser shell sudo su -

  • Create folder mkdir -p /opt/delegate && cd /opt/delegate

  • Download Delegate source wget http://www.delegate.org/anonftp/DeleGate/delegate9.9.11.tar.gz && tar xfz delegate9.9.11.tar.gz

  • Change directory to delegate source cd delegate9.9.11

@nrrb
nrrb / lxml_utils.py
Created September 19, 2014 19:53
Some utility functions for working with the Python module lxml when parsing HTML
from urlparse import urljoin
import lxml.html
def clean_xpath(path):
"""
When copying XPath from the developer console of Firefox or Chrome,
the browser inserts 'tbody' tags in table declarations which are
generally not there in the original source. These need to be removed
in order for lxml to work with said XPath expression.
@nrrb
nrrb / Preferences.sublime-settings
Last active August 29, 2015 14:06
Sublime Text Setup Notes
{
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.light.tmTheme",
"font_size": 11,
"ignored_packages":
[
],
"shift_tab_unindent": true,
"spacegray_sidebar_font_large": true,
"spacegray_sidebar_tree_large": true,
"spacegray_tabs_auto_width": true,
@nrrb
nrrb / notes.md
Last active August 29, 2015 14:06
Python Development Environment in Windows 8
@nrrb
nrrb / fives.txt
Last active August 29, 2015 14:05
Generating possible English word combinations for Wordlock-brand padlock.
AARON
AERIE
AHEAD
AHIND
AHINT
AHSAN
AHULL
AHUNT
AHUSH
AILIE
@nrrb
nrrb / summarize.py
Last active August 29, 2015 14:04
Image Metadata Extraction
# -*- coding: utf-8 -*-
# This doesn't use any Python libraries for extracting image metadata. Instead,
# it relies on the very handy exiftool utility and parsing the results.
# exiftool: http://www.sno.phy.queensu.ca/~phil/exiftool/
from __future__ import unicode_literals
import unicodedata
import subprocess
import csv
import os
import re
@nrrb
nrrb / BbhaJ.markdown
Last active August 29, 2015 14:00
A Pen by Nick Bennett.