Skip to content

Instantly share code, notes, and snippets.

View epochblue's full-sized avatar

Bill Israel epochblue

View GitHub Profile
@epochblue
epochblue / play.sh
Created August 21, 2021 18:14
A silly Bash script for playing YouTube audio files on macOS.
#!/usr/bin/env bash
#
# Download the audio from a YouTube video, the play it using the Mac's built-in
# `afplay`.
#
# Note: requires `youtube-tl` (https://github.com/ytdl-org/youtube-dl)
#
yt_url=$1
tmp_file="/tmp/play.m4a"
@epochblue
epochblue / fc660m.json
Created August 2, 2021 17:56
QMK Mapping for my Clueboard
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "clueboard/66/rev3",
"keymap": "fc660m",
"layout": "LAYOUT_66_ansi",
"layers": [
[
"KC_ESC",
@epochblue
epochblue / split-audio.py
Created August 2, 2021 12:00
A simple Python script for splitting an audio file using ffmpeg and a set list.
#!/usr/bin/env python3
"""
Split an audio file based on the timestamps in a file containing set information.
Expected format for the setfile is:
HH:MM:SS Track #1
HH:MM:SS Track #2
HH:MM:SS Track #3

Are you the owner of the content that has been disabled, or authorized to act on the owner’s behalf?
Yes.

What files were taken down? Please provide URLs for each file, or if the entire repository, the repository’s URL:
https://github.com/epochblue/exercism/blob/master/python/saddle-points/saddle_points.py

Do you want to make changes to your repository or do you want to dispute the notice?
I want to dispute the notice.

Is there anything else you think we should know about why you believe the material was removed as a result of a mistake? (optional)

@epochblue
epochblue / hiit-generator.py
Last active August 14, 2018 11:08
Start script for generating random-ish HIIT workouts
#!/usr/bin/env python3
"""
Builds a simple HIIT workout, while trying to be
smart about how it builds it.
Author: Bill Israel <bill.israel@gmail.com>
License: Public Domain
"""
import random
import sys
@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
@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 / 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 <bill.israel@gmail.com>
"""
import os
import sys
@epochblue
epochblue / resume.md
Last active June 17, 2021 17:17
Resumé
@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