This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Return netmask for a given network and CIDR. | |
cidr_to_netmask() { | |
value=$(( 0xffffffff ^ ((1 << (32 - $1)) - 1) )) | |
echo "$(( (value >> 24) & 0xff )).$(( (value >> 16) & 0xff )).$(( (value >> 8) & 0xff )).$(( value & 0xff ))" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /code/railsapp/app/assets/javascripts/thing/app.js.coffee | |
#= require angular/templates | |
angular.module("thing", ["app.templates"]).value("appName", "thing") |