Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import os
import sys
import argparse
import subprocess
from os import path
# Encode file w handbrakecli command
@brennonyork
brennonyork / apache-verify-release
Last active June 12, 2016 21:22
Verification of Apache releases
#!/usr/bin/env python
##
# desc: This program will attempt to automatically verify any apache project
# release candidate (RC) that it understands. Verification info and steps
# can be found on the Apache website [1].
# http://www.apache.org/info/verification.html
#
# arg1: project to pull, build, and test from the supported list
# arg2: version of the project to build (e.g. 5.4.0)
@brennonyork
brennonyork / double-dash.sh
Created December 8, 2014 20:05
Simple shell CLI loop to read until a double-dash (--)
# Here we build our own CLI event loop with the '--' as the stop
OPT="$1"
while [ ! "$OPT" = "--" -a ! $# -eq 0 ]; do
case $OPT in
-f)
FORCE_INSTALL=1
shift
;;
*)
echo "Unknown option: $OPT"
### Keybase proof
I hereby claim:
* I am brennonyork on github.
* I am boyork (https://keybase.io/boyork) on keybase.
* I have a public key whose fingerprint is AFC6 04B6 B941 CA74 1D80 6871 60FC 011F 7EE3 2B29
To claim this, I am signing this object:
@brennonyork
brennonyork / OSX-bootstrap
Last active August 29, 2015 13:58
Provisions OSX computers with personal and development settings
#!/bin/bash
curl https://gist.githubusercontent.com/brennonyork/10221942/raw/lt-user-behaviors.clj > "/Users/boyork/Library/Application Support/LightTable/settings/user.behaviors"
@brennonyork
brennonyork / lein-bootstrap.sh
Last active January 3, 2016 17:09
A simple shell bootstrap file for Leiningen projects.
#!/bin/bash
# From:
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Grab the current project name from the project.clj file
PROJECT_NAME=`echo -e "\
with open('$DIR/../project.clj', 'r') as f:\n\
for line in f:\n\