tcpdump -A -s 10240 'tcp port 8080' \ | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[0-9][0-9]:[0-9][0-9]|^[A-Za-z0-9-]+: " \ | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\1/g; s/^([0-9:\.]*) IP .*/\n\1/g'
tcpdump -A -s 10240 'tcp port 8080' \ | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[0-9][0-9]:[0-9][0-9]|^[A-Za-z0-9-]+: " \ | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\1/g; s/^([0-9:\.]*) IP .*/\n\1/g'
for D in *.mp4; do NAME=$(echo $D | cut -f 1 -d \.) ffmpeg -i $D -vf fps=1/20 $NAME-%03d.jpg convert -resize 320x240 -delay 30 -loop 0 $NAME-*.jpg $NAME.gif rm $NAME-*.jpg done
aws route53 change-resource-record-sets --hosted-zone-id $(aws route53 list-hosted-zones | grep -B 1 '"xiehang.com."' | grep '"Id"' | cut -f 4 -d \" | cut -f 3 -d /) --change-batch file://<(echo '{"Changes":[{"Action": "DELETE","ResourceRecordSet":' $(aws route53 list-resource-record-sets --hosted-zone-id $(aws route53 list-hosted-zones | grep -B 1 '"xiehang.com."' | grep '"Id"' | cut -f 4 -d \" | cut -f 3 -d /) --query "ResourceRecordSets[?Name == 'to-be-deleted.xiehang.com.']" --max-items 1| egrep -v '^\[|^\]')'}]}')
Or as a script:
ZONE_ID=$(aws route53 list-hosted-zones | grep -B 1 '"xiehang.com."' | grep '"Id"' | cut -f 4 -d \" | cut -f 3 -d /) RECORD=$(aws route53 list-resource-record-sets --hosted-zone-id ${ZONE_ID} --query "ResourceRecordSets[?Name == 'to-be-deleted.xiehang.com.']" | egrep -v '^\[|^\]' --max-items 1) JSON='{"Changes":[{"Action": "DELETE","ResourceRecordSet":'${RECORD}'}]}' aws route53 change-resource-record-sets --hosted-zone-id ${ZONE_ID} --change-batch file://<(echo ${JSON})
Google offers life time free tier: https://cloud.google.com/free/
Running this and couple of other websites on GCE now, saves me several bucks a month 😀
Thanks Let’s Encrypt, I’m running HTTPS now.
I plan to get these done in the coming 6 months:
This is my naive conclusion from short time of observation, everybody hates dealing with multiple ticketing systems, and it seems to me JIRA is much more clear as a “ticketing system”, but corporate/enterprise still prefers Rally, why?
Well, it’s because of corporate cares more about process, care about how much time people spent, either want to track workload, or just want to make sure employees are doing real jobs. On the other size, startups care about getting things done, they really don’t care, or have no time to care about workload, and trust people in the company are willing to take things whenever they are free.
I would like to see how other people think about this.
Great post: http://docs.openstack.org/developer/devstack/guides/single-machine.html
And now I’m running a private cloud on my server, it’s good enough to test OpenStack stuffs.
Just to remind myself in case I get lost again:
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update sudo apt-get install oracle-java7-installer
deb http://debian.datastax.com/community 2.1 main deb-src http://debian.datastax.com/community 2.1 main
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
sudo apt-get update sudo apt-get install cassandra
git rebase -i --root develop