http://www.ilikepixels.co.uk/drop/bubbler/
http://tenzer.dk/nginx-with-dynamic-upstreams/
http://www.nateberkopec.com/2015/07/15/the-complete-guide-to-rails-caching.html
# Should rename test_controller.coffee to test.coffee | |
for old in ./*_controller.coffee; do | |
new=$(echo $old | sed -e 's/_controller//') | |
echo "moving $old to $new" | |
mv -v "$old" "$new" | |
done |
Find copy ID of container to search for using docker ps
docker inspect CONTAINER_ID | grep IPAddress
wait4eth1() { | |
CNT=0 | |
until ip a show eth1 | grep -q UP | |
do | |
[ $((CNT++)) -gt 60 ] && break || sleep 1 | |
done | |
sleep 1 | |
} | |
wait4eth1 |
require 'json' | |
require 'rest-client' | |
message = { | |
'TransmissionReference' => 'Sample', | |
'CustomerID' => ENV['CUSTOMER_ID'], | |
'Actions' => 'Check', | |
'Options' => nil, | |
'Columns' => nil, | |
'Records' => [{ |
#!/usr/bin/env bash | |
# This script is run as part of the travis CI process to ensure that the | |
# changelog in every app has been updated when working on a feature branch. | |
# If there is no update to the changelog file (CHANGELOG.md), it exits with | |
# an error causing the travis build to fail. | |
# Only run this when ci script is executed by travis | |
${CI?"Not excuted by travis"} |
require 'redis' | |
# Redis.new(url: ENV['REDIS_URL']).flushall | |
Redis.new(url: ENV['REDIS_URL']).dbsize |
app_name=$(basename `pwd`) | |
echo $app_name | |
exit 1 |