Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wot123 on github.
  • I am wot123 (https://keybase.io/wot123) on keybase.
  • I have a public key ASDoC9LsBkz9Xn1fJJN3LrWvYR46LxvTl_uYbtRojGtumAo

To claim this, I am signing this object:

@wot123
wot123 / route53update.sh
Created January 5, 2017 13:39
Update route53 dns record entry script
#!/bin/bash
NAME=$1
HOSTEDZONE=$2
IPADDRESS=$(curl --silent http://169.254.169.254/latest/meta-data/public-ipv4)
echo "{\"Changes\":[{\"Action\": \"UPSERT\", \"ResourceRecordSet\": { \"Name\": \"$(echo $NAME)\", \"Type\":\"A\", \"TTL\":900, \"ResourceRecords\": [{\"Value\": \"$(echo $IPADDRESS)\"}]}}]}" > /tmp/dnsupdate.json
aws route53 change-resource-record-sets --hosted-zone-id $HOSTEDZONE --change-batch file:///tmp/dnsupdate.json
@wot123
wot123 / gist:8318927
Created January 8, 2014 15:51
websocket impactjs plugin
ig.module(
'plugins.websocket'
)
.defines(function(){
ig.Websocket = ig.Class.extend({
action: 'undefined',
ws:null,
enabled:false,
ig.module(
'plugins.touch-button'
)
.requires(
'impact.system',
'impact.input',
'impact.image'
)
.defines(function(){