Skip to content

Instantly share code, notes, and snippets.

Jonathan Roes jroes

  • Heroku
  • Charlotte, NC
Block or report user

Report or block jroes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-jiggle.sh
#!/bin/bash
machine_name=dev
interface=vboxnet1
sudo route -n delete 192.168.99.0
sudo route -n add -net 192.168.99.0/24 -interface $interface
docker-machine rm $machine_name
docker-machine create --driver virtualbox $machine_name
eval "$(docker-machine env $machine_name)"
View iosgfx.rb
#!/usr/bin/env ruby
# encoding: utf-8
#
# Download 1136x1136 screenshots and 512x512 icon from iTunes for a list of
# search terms.
#
# Jon Roes <jroes@heroku.com>
#
# Example:
# $ iosgfx search_terms.txt
View keybase.md

Keybase proof

I hereby claim:

  • I am jroes on github.
  • I am jroes (https://keybase.io/jroes) on keybase.
  • I have a public key whose fingerprint is EC5E AA03 1431 9CC3 ED98 B1FC 94CA BF6B 82AB 1638

To claim this, I am signing this object:

@jroes
jroes / homerow
Last active Dec 29, 2015
QGMLWB words
View homerow
added
addend
addenda
adead
adenase
adenose
adnate
adossed
aenean
aesthete
View gist:7009325
package main
import (
"io/ioutil"
"os"
"sort"
"strings"
)
func main() {
@jroes
jroes / gist:6794136
Created Oct 2, 2013
My current Vocola 2 config.
View gist:6794136
# Voice commands for putty
# tmux
mux next = {Ctrl + T} {n};
mux prev = {Ctrl + t} {p};
mux 0..9 = {Ctrl + T} {$};
mux detach = {Ctrl + T} {d};
mux attach = "tmux attach {enter}";
mux reattach = "tmux attach -d {enter}";
@jroes
jroes / gist:5635991
Last active Dec 17, 2015
Shield your eyes!
View gist:5635991
# Test with:
#
# $ curl -o sample1.wav https://api.twilio.com/2010-04-01/Accounts/AC44d08277b616939d314d0c81832c389a/Recordings/REb9c469219996e51b1b9aee996b3ff48309
# $ curl -o sample2.wav https://api.twilio.com/2010-04-01/Accounts/AC44d08277b616939d314d0c81832c389a/Recordings/REf7ba239cedd653ce75390c925ed51aad
# $ python compare_audio.py sample1.wav sample2.wav
import wave
import sys
import numpy as np
View gist:5497853
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;:::::::::::;;;;:::;;;;;;;;;;;;;;;;;;;::::::::::;;;;;;;;;;;;;;;:::::::::,,,;+';;;;::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;::::::::::::::::::;;;;;;;;;;;;;;;;;;;::::::::.;;;;;;;;;;;;;;;::::::::,,,:'##+;;:::::;::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;::::::;;:::;;;;;:;;::::::::::::::::;;;;:;;:::;;;;;;;;;;;;;;;;;;;;;:::::.;;;;;;;;;;;;;;;;:::::,,,,:'+++++':::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;:;;;:;::::::;::::::;:;::;;:::;;;;;;;;;;;;;;;;;;;;;::::,:;;;;;;;;;;;;;;::::::,,,,;'++++++';::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::;;;::::;;;;;;;;:::;;;;;;;;;;;;;;;;;;;;;:::,:;;;;;;;;;;;;:::::::,,,,;''';''++#+'::::::::::::::::::::::
:::::::::::::::::::
View gist:4596405
jroes work$ rhc app create -a railsapp2 -t ruby-1.9 && rhc cartridge add -a railsapp2 -c mysql-5.1 && cd railsapp2 && git remote add upstream -m master git://github.com/openshift/rails-example.git && git pull -s recursive -X theirs upstream master
Password: **************
Creating application 'railsapp2'
================================
Namespace: skookum
Cartridge: ruby-1.9
Gear Size: default
Scaling: no
View gist:3839905
GIT
remote: git://github.com/spree/spree-multi-domain
revision: 9b2e7c71f62fc514d8624515a168c44c5353208c
specs:
spree_multi_domain (1.0.0)
spree_core (~> 1.2)
GIT
remote: git://github.com/spree/spree_auth_devise
revision: 887dba92d5075550b38e947ddd5bfa384932c942
You can’t perform that action at this time.