I hereby claim:
- I am turtlebender on github.
- I am turtlebender (https://keybase.io/turtlebender) on keybase.
- I have a public key whose fingerprint is 2B20 F017 7E71 6588 CE46 8947 131D C763 B006 6D4B
To claim this, I am signing this object:
!/bin/bash | |
# This script will grab the certificate from the specified host and add it to the Java cacerts keystore | |
function usage | |
{ | |
printf 'Usage: grab-cert.sh hostname port\n' >&2 | |
exit 1 | |
} |
I hereby claim:
To claim this, I am signing this object:
import pywinauto.application | |
app = pywinauto.application.Application() | |
app.start_(ur"notepad.exe") | |
notepad = app.Notepad | |
notepad.edit.TypeKeys(u"I am typing s\xe4me text to Notepad\r\n\r\n" | |
"And then I am going to quit") |
safeGitio = (link) -> | |
gitio link, (err, data) -> | |
if err then link else data |
#!/usr/bin/env python | |
""" | |
This module will bootstrap a machine using chef. The purpose of this | |
script is actually to work with AWS Auto Scaling Groups. The user data | |
for the Launch Configuration is set to download this script and then | |
run it. This is also stores the results in a private gist and sends | |
a message to logstash with the results. | |
""" |
One thing people always want is the ability to easily use the virtualenv created by snakegit. Here is an easy way to accomplish that. If you add these functions to either your ~/.bash_profile or your ~/.profile file, then you will have 2 new commands you can run. N.B. you can call the functions whatever you want, but snakeskin and shed are kinda cute and came from Walt
# in your project directory call snakeskin to activate
function snakeskin()
{
export OLDPATH=$PATH
test -f snake.cfg || (echo "Not a snake project" ; return 0)
test -f vendor/python/bin/activate || git snake build
source vendor/python/bin/activate
export PATH=$PATH:~/.snakegit/bin
#!/usr/bin/env python | |
""" | |
_chef_profile_ | |
Generate a chef profile data bag | |
""" | |
import argparse |
"{{name}}": { | |
"exchange": "{{exchange}}", | |
"binding_key": "{{binding_key}}" | |
}, |
#!/usr/bin/env python | |
import os | |
import os.path | |
import subprocess | |
import sys | |
import tempfile | |
import urllib2 | |
# Welcome message | |
install_message = ''' |
#!/usr/bin/env bash | |
# Welcome message | |
cat <<EOM | |
____ _ ____ _ _ | |
/ ___| _ __ __ _| | _____ / ___(_) |_ | |
\___ \| '_ \ / _' | |/ / _ \ | _| | __| | |
___) | | | | (_| | < __/ |_| | | |_ | |
|____/|_| |_|\__,_|_|\_\___|\____|_|\__| |