First, install dnsmasq using brew:
$ brew update
$ brew install dnsmasqThen create your configuration
| #!/bin/bash | |
| set -e | |
| usage(){ | |
| echo "Error $errcode $errorcode at line ${BASH_LINENO[0]} while executing: $BASH_COMMAND" | |
| exit $errorcode | |
| } | |
| trap usage ERR |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s http://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| var net = require("net"), | |
| args = {}; | |
| process.argv.forEach(function (val, index) { | |
| var dest, listen; | |
| if (val === '--destination') { | |
| dest = process.argv[index + 1].split(':'); | |
| args.destination = dest[0]; |
| define(function () { | |
| 'use strict'; | |
| /*! | |
| * quantize.js Copyright 2008 Nick Rabinowitz. | |
| * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php | |
| */ | |
| // fill out a couple protovis dependencies | |
| /*! |
| /* | |
| Chrome Developer Tools - Monokai Color Theme | |
| Author: Béres Máté Csaba / bjmatt.com / @bjmatt / [email protected] | |
| ----------------------------------------------------------------------------------------------------------- | |
| Installation: | |
| 1. Find your Chrome's user stylesheets directory: |
| // Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
| var metas = document.getElementsByTagName('meta'); | |
| var i; | |
| if (navigator.userAgent.match(/iPhone/i)) { | |
| for (i=0; i<metas.length; i++) { | |
| if (metas[i].name == "viewport") { | |
| metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
| } | |
| } |