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
//Javascript for finding latitude and longitude range boundaries. | |
//Based on the excellent Java example by http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates | |
var GeoLocation = GeoLocation ? GeoLocation : { | |
TO_RADIAN: 0.0174532925, | |
TO_DEGREE: 57.2957795, | |
EARTH_RADIUS: 6371.01, | |
TO_MILE: 0.621371192, | |
TO_KM: 1.609344, | |
MIN_LAT: function() { return GeoLocation.degreeToRadian(-90) }, |
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
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.synced_folder "../", "/home/vagrant/fall_manager_provisioning" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.memory = "4096" |
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
#Docker Tools | |
alias docker-container-ip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'" | |
function docker_container_ip() { docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1; } | |
#.htpassword file password hasher | |
function hash_password() { perl -le "print crypt(\"$1\", \"salt-hash\")"; } | |
#Firewall Tools | |
alias flush-blacklist='sudo bash -c "echo / > /proc/net/xt_recent/iptables_blacklist"' | |
alias blacklist='cat /proc/net/xt_recent/iptables_blacklist' | |
alias blacklist-count='blacklist | wc -l' |