$ brew install unbound ldns
This file contains 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
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
Tested on Yosemite. Should work on El Cap. Message me if it doesn't.
- You are tired of using vagrant
- You want to run guard
- You want use Sublime plugins (like RSpec or Guard plugins)
- You want your code to run faster in development
This file contains 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 Version Manager wrapper for *nix | |
# Implemented as a POSIX-compliant function | |
# Should work on sh, dash, bash, ksh, zsh | |
# To use, source this file from your bash profile | |
begin # This ensures the entire script is downloaded | |
set DVM_SCRIPT_SOURCE $_ | |
# __dvm_has() { | |
# type "$1" > /dev/null 2>&1 |
- nginx with ngx_http_geoip_module, echo-nginx-module, lua-nginx-module is required; libgeoip needs to be installed and geoip database should be placed under
/usr/share/GeoIP
. http://example.com
for current GeoIP andhttp://example.com/ip
for current IP onlyhttp://example.com/x.x.x.x
to query any IP.http://example.com/domain-name
for GeoIP of domain-name andhttp://example.com/domain-name/ip
to return IP of domain-name only. If multiple IPs are set to single domain-name, all of them will be returned. OnlyA record
will be used.- Sample requests are:
$ curl http://example.com/
x.x.x.x
Country, City
ASN number
This file contains 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
[ | |
{ | |
"_comment": "https://github.com/caryan/CBC-Radio-Player/blob/develop/resources/stationData/PodCastData.json", | |
}, | |
{ | |
"RSSFeed": "http://www.cbc.ca/podcasting/includes/andthewinneris.xml", | |
"description": "Award-winning radio fresh from the winners-circle to your computer. From the Peabody Awards, to the Prix Italia to the New York Festivals - every mp3 is a champ.", | |
"imgLink": "http://www.cbc.ca/podcasting/images/promo-andthewinneris-sm.jpg", | |
"title": "And the Winner Is..." | |
}, |
This file contains 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
<?php | |
// modified by PROXIMO https://gist.github.com/PROX1MO | |
// Remake of the famous Raspberry Pi Sysinfo Script | |
header("Cache-Control: no-cache, must-revalidate"); | |
header("Expires: Sat, 26 May 1983 13:00:00 GMT"); | |
header("Pragma: no-cache"); | |
function NumberWithCommas($in) | |
{ | |
return number_format($in); | |
} |
This file contains 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
# basic pfctl control | |
# == | |
# Related: http://www.OpenBSD.org | |
# Last update: Tue Dec 28, 2004 | |
# == | |
# Note: | |
# this document is only provided as a basic overview | |
# for some common pfctl commands and is by no means | |
# a replacement for the pfctl and pf manual pages. |
Related: http://www.OpenBSD.org Last update: Tue Dec 28, 2004 Note: this document is only provided as a basic overview for some common pfctl commands and is by no means a replacement for the pfctl and pf manual pages.
disable packet-filtering:
pfctl -d