$ brew install pdnsd
$ sudo chown -R nobody /usr/local/var/cache/pdnsd
$ curl -L http://goo.gl/kMlyQ -o pdnsd.conf
$ mv pdnsd.conf /usr/local/etc
$ sudo chown root /usr/local/etc/pdnsd.conf
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
const ( | |
Day time.Duration = time.Hour * 24 |
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
package main | |
import ( | |
"flag" | |
"html/template" | |
"log" | |
"net/http" | |
"path/filepath" | |
"sync" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>pdnsd</string> | |
<key>OnDemand</key> | |
<false/> | |
<key>Program</key> | |
<string>/usr/local/sbin/pdnsd</string> |
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
#!/bin/bash | |
# | |
# Separate because this is a major script on its own. | |
# ------------------------------------------------------------------------------ | |
# Go lang compiler and runtime. | |
# ------------------------------------------------------------------------------ | |
GO_VERSION=1.3.3 | |
_GO_INSTALLED_VERSION=`go version 2>&1 | awk -Fgo '{ print $3 }' | awk '{ print $1 }'` |
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
#!/bin/bash | |
# | |
# Description: Releases for this script are available at: | |
# https://gist.github.com/gorakhargosh/c3902d08a939995fb4af/ | |
# | |
# The above URL has a bit.ly link as: | |
# http://bit.ly/bhojo-config | |
# | |
# The script is intended to be written and reviewed in the repository | |
# but released as a gist at the abovementioned URL. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import datetime | |
def experience(start, end): | |
months = (end.year - start.year)*12 + end.month - start.month | |
return divmod(months, 12) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 4; -*- | |
import argparse | |
import fnmatch | |
import glob | |
import os | |
import pprint | |
import shutil | |
import sys |
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
goog.scope(function() { | |
hub.controller.AcronymsDialogCtrl = function(...) { | |
}; | |
var Ctrl = hub.controller.AcronymsDialogCtrl; | |
Ctrl.someMethod = ...; | |
Ctrl.prototype.someInstanceMethod = ...; |
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
goog.object.set(diff, property, appkit.object.difference(a[property], | |
b[property], | |
equalsFn)); | |
// Not the same as above! WTF. | |
innerDiff = appkit.object.difference(a[property], | |
b[property], | |
equalsFn); |