I hereby claim:
- I am whytheplatypus on github.
- I am whytheplatypus (https://keybase.io/whytheplatypus) on keybase.
- I have a public key ASCCOjucpue7HhsA0kGuY066sT-X3RJhqP_sOn31y_VsJAo
To claim this, I am signing this object:
VMI_KEY="vmi key for use by smh" | |
VMI_SECRET="vmi secret fro use by smh" | |
SMH_KEY="smh key for use by smh_app" | |
SMH_SECRET="smh secret for use by smh_app" | |
APP_VMI_KEY="vmi key for use by smh_app" | |
APP_VMI_SECRET="vmi secret for use by smh_app" |
#!/bin/bash | |
if [ $# -lt 1 ]; then | |
echo "Must supply a file name" | |
exit 1 | |
fi | |
REPO_NAME=$(echo "$1" | base64) | |
LOCAL_REPO=$HOME/.gist/$REPO_NAME | |
FILE_PATH=$(pwd)/$1 |
### Keybase proof | |
I hereby claim: | |
* I am whytheplatypus on github. | |
* I am whytheplatypus (https://keybase.io/whytheplatypus) on keybase. | |
* I have a public key ASDyKeq5YK0NOmM0o1YRUg2tymYbsL4vrTT7kV_AVogsVgo | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
#WeBWorK ec2 AMI
##Set up Amazon ec2
#!/bin/bash | |
export GATEWAY=$(netstat -r | grep default | awk '{ print $2 }') | |
echo "{ | |
\"brand\": \"joyent\", | |
\"dataset_uuid\": \"$1\", | |
\"hostname\": \"$2\", | |
\"alias\": \"$3\", | |
\"nics\": [ | |
{ |
#!/bin/bash | |
mv /etc/nsswitch.conf /etc/nsswitch.conf_old | |
cp /etc/nsswitch.dns /etc/nsswitch.conf | |
svcadm enable multicast | |
svcs multicast |
# find gateway based on global zone gateway | |
export GATEWAY=$(netstat -r | grep default | awk '{ print $2 }') | |
for uuid in `vmadm list -H -o uuid`; do echo "{ | |
\"update_nics\": [ | |
{ | |
`vmadm get $uuid | json nics | grep mac` | |
\"gateway\":\"${GATEWAY}\" | |
} |
<script> | |
var require = { | |
waitSeconds: 15, | |
urlArgs : "bust=" + (new Date()).getTime(), | |
deps : ['main'] | |
}; | |
</script> |
#this goes in config/initializers | |
Paperclip.options[:log] = false |