Skip to content

Instantly share code, notes, and snippets.

View epochblue's full-sized avatar

Bill Israel epochblue

View GitHub Profile
@epochblue
epochblue / get-img.py
Created December 12, 2014 22:31
Get all the image tags in a given URL and print their URLs.
import sys
import urllib2
import contextlib
from bs4 import BeautifulSoup
if len(sys.argv) < 2:
print 'Error: Please provide a URL to scrape.'
sys.exit(1)
@epochblue
epochblue / isitup.py
Last active August 29, 2015 14:13
Personal Pingdom
"""
Notify someone if a website is unavailable.
Usage:
isitup.py [-v] <site> <from_email> <to_email> <smtp_user> <smtp_password>
isitup.py -h|--help
isitup.py --version
Options:
-h --help Print this message
Join the channel you want to register. Make sure you're an op (either the first to join, or someone who is an op there sets you to +o).
/join #newchannel
/msg chanserv register #newchannel
/msg chanserv set #newchannel mlock +cnt-s
/msg chanserv set #newchannel guard on
/msg chanserv set #newchannel secure on
/msg chanserv set #newchannel topiclock on
/msg chanserv set #newchannel keeptopic on
/msg chanserv set #newchannel url http://example.org/
@epochblue
epochblue / readlater.sh
Created October 16, 2015 02:27
A CLI-only read-later list.
#!/usr/bin/env bash
# readlater.sh -- a time waster by Bill Israel <[email protected]>
#
# Think of it as an overly simplified, text-based version of Instapaper
# without most of the cool features.
#
# The path to your read later file (I recommend it being a file in Dropbox)
RL_FILE="$HOME/Dropbox/readlater.txt"
@epochblue
epochblue / rdio-export.py
Last active December 9, 2015 04:25
A quick-and-dirty script for getting all my album and playlist info out of Rdio before my subscription is up. This script was only tested on Python 3.5.0.
import requests
from requests.auth import HTTPBasicAuth
CLIENT_ID = ''
CLIENT_SECRET = ''
TOKEN_URL = 'https://services.rdio.com/oauth2/token'
API_URL = 'https://services.rdio.com/api/1/'
# GET TOKEN
@epochblue
epochblue / markdown.sh
Created January 28, 2016 14:36
A bash function to convert a file into Github-flavored Markdown
# This function requires `jq` be installed.
# On OS X, you can install jq via Homebrew: `brew install jq`
function markdown {
in=$1
if [ -z "$in" ]; then
echo "Error: No input file specified"
return 1
fi
out=$2
@epochblue
epochblue / resume.md
Last active June 17, 2021 17:17
Resumé
@epochblue
epochblue / pomodoro.py
Last active April 18, 2017 21:45
A simple command line Pomodoro timer.
#!/usr/bin/env python3
"""
Just a simple command line timer for the Pomodoro Technique.
More info: https://en.wikipedia.org/wiki/Pomodoro_Technique
Usage: `pomodoro.py`
Author: Bill Israel <[email protected]>
"""
import os
import sys
@epochblue
epochblue / npr-150-greatest-albums-by-women-asc.md
Last active August 11, 2017 19:32
Turning the Tables: The 150 Greatest Albums By Women

NPR's 150 Greatest Albums Made By Women

  1. Joni Mitchell - Blue (Reprise, 1971)
  2. Lauryn Hill - The Miseducation of Lauryn Hill (Ruffhouse/Columbia, 1998)
  3. Nina Simone - I Put A Spell on You (Philips, 1965)
  4. Aretha Franklin - I Never Loved a Man The Way I Love You (Atlantic, 1967)
  5. Missy Elliott - Supa Dupa Fly (The Goldmind/Elektra, 1997)
  6. Beyoncé - Lemonade (Parkwood/Columbia, 2016)
  7. Patti Smith - Horses (Arista, 1975)
@epochblue
epochblue / black-girls-code.txt
Created November 2, 2017 19:42
An email I've been trying to send to @blackGirlsCode for days now...
Hi!
I should start by introducing myself: my name is Bill Israel. 👋 I live in Nashville, TN, I work for Eventbrite, I organize the local Python meetup, and this year I've taken over organizing PyTennessee, a yearly, regional Python conference. I was reaching out to see if you'd be willing to share some information about PyTennessee in hope that women in your organization might be interested in submitting a talk to our CFP? PyTennessee has a history of being very friendly to first-time speakers and we do our best to remind *everyone* that they have knowledge worth sharing. A conference is only as good as the speakers, and we know there are some excellent speakders in your midst!
Here's some quick info on the CFP:
- Open right now, will be closing on November 8 @ noon (CDT)
- Talks can be submitted here: https://www.pytennessee.org/proposals/submit/
- We have some proposal advice here: https://www.pytennessee.org/speaking/advice/
- We love to help people who're interested in speaking with our CFP process in