Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile
defaultproperties
{
DBWeaponId=7454
m_fMaxDamageRangePct=0.50
m_fMinDamageRangePct=0.90
m_fMinDamagePct=0.50
m_fDamageMultiplierAgainstArmor=1.20
m_bEnableMotors=true
m_bImpulsesFlags=true
@ghuntley
ghuntley / osx_developer_installation.rst
Created September 24, 2012 01:58 — forked from stefanfoulis/osx_developer_installation.rst
Instructions on how to setup an OSX developer machine for (python/django) development

OSX Developer System installation

This guide assumes a fresh install of Mac OSX 10.7 Lion.

Homebrew

@ghuntley
ghuntley / gist:3773804
Created September 24, 2012 01:58 — forked from panuta/gist:1852087
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)

https://developer.apple.com/downloads/index.action
@ghuntley
ghuntley / backup-github-appliance.sh
Last active October 11, 2015 12:07
backup github appliance
#!/bin/bash
#set -xv
######################################################################
#
# Script Name : backup-github-appliance.sh
#
# Purpose : Exports core-data from github appliance
# Note :
# Called by : admin crontab
# Author : Geoffrey Huntley <ghuntley@ghuntley.com>
@ghuntley
ghuntley / tunnelbroker-net.sh
Created October 23, 2012 23:29 — forked from pklaus/tunnelbroker-net.sh
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <philipp.l.klaus@web.de>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x
# url.txt should contain the URL load in Chrome in full screen.
do shell script "open '/Applications/Google Chrome.app' " & readFile("/url.txt")
tell application "Google Chrome" to activate
tell application "System Events"
keystroke "f" using {command down, shift down}
end tell
# All this just to read a file; no backticks in AppleScript.
on readFile(unixPath)
using ServiceStack.WebHost.Endpoints;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security;
using ServiceStack.Common.Web;
using ServiceStack.Logging;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
@ghuntley
ghuntley / Epoch.cs
Created February 2, 2013 12:44 — forked from txdv/Epoch.cs
using System;
namespace Epoch
{
public class Epoch
{
static readonly DateTime epochStart = new DateTime(1970, 1, 1, 0, 0, 0);
static readonly DateTimeOffset epochDateTimeOffset = new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero);
@ghuntley
ghuntley / google-maps-lasso-search.coffee
Last active November 16, 2017 19:49
Plugin for Google Maps that can be used to lasso an area on a map and then return markers that only exist within that area.
# lasso search tool for google maps
# source code unpacked using: http://matthewfl.com/unPacker.html
# website: http://www.daftlogic.com/sandbox-google-maps-marker-lasso-search-tool.htm
# code: http://www.daftlogic.com/script/sandbox-google-maps-marker-lasso-search-tool.js
initialize = ->
latlng = new google.maps.LatLng(34.12016327332972, -118.0456525824976)
myOptions =
zoom: 16
center: latlng
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {