Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshcampbell
joshcampbell / Pry Segfault
Created November 19, 2013 16:21
Pry segfaults when I try to run it in an rspec test.
Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
* bin_path
* searchd_binary_name
* indexer_binary_name
For more information, read the documentation:
http://pat.github.com/ts/en/advanced_config.html
@joshcampbell
joshcampbell / init_ansible_role.sh
Created October 20, 2015 14:34 — forked from zircote/init_ansible_role.sh
bash function to create a boilerplate ansible role (I am lazy)
#!/bin/sh
function init_ansible_role {
if [[ ! -n $1 ]]; then
echo no init
return
fi
mkdir -p roles/${1}/{defaults,tasks,files,templates,vars,handlers,meta}
for i in defaults tasks vars handlers meta; do
if [[ ! -f roles/${1}/${i}/main.yaml ]]; then
echo creating file: roles/${1}/${i}/main.yaml
@joshcampbell
joshcampbell / gist:fa1eaba71229fe61575e
Created October 30, 2015 23:49
Generated Portmanteaus
ingenuouslyer
abatementombment
authoritarianswering
evertingrate
veneerie
againt
heel
suitcasexual
stanklets
recapitalisationised
pebblee
crumlinguified
Eirelands.
mountaint
younguest
comfortisms,
underry
Scoutskut,
pland
thennad
dingo,
lovenaned.
Rechabitestimonies
scrutinisingang
camera,
Charissima!
Nomon.)
grabsent,
L'Archeterotropic,
toecapitally
mosquitoes
rate
Mayo
toe.
regulregulatory
wines
he!"
mound-buildindingus,
seen
preposteroroused
from subprocess import Popen
class Voice:
def __init__(self):
self.subprocess = None
def say(self,quote):
self.stop()
self.subprocess = Popen(["espeak",quote])
@joshcampbell
joshcampbell / keybase.md
Created October 9, 2018 22:01
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object: