Skip to content

Instantly share code, notes, and snippets.

is typing

David Huerta huertanix

is typing
Block or report user

Report or block huertanix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
huertanix / torrc
Last active Dec 13, 2015
Example Tor Non-Exit Relay Configuration for a DigitalOcean Droplet
View torrc
# 9001 is the port Tor will use for relaying traffic through.
# 9030 is the port used for the global Tor directory.
ORPort 9001
DirPort 9030
# These basically determine how much to throttle traffic.
# 770 Kilobytes per second should keep us from burning through our
# 2 TB per month cap too quickly.
huertanix / right-click-block
Created Apr 9, 2015
Blocking right-click context menus in web browsers
View right-click-block
(function () {
var blockContextMenu, myElement;
blockContextMenu = function (evt) {
window.addEventListener('contextmenu', blockContextMenu);
huertanix /
Created Apr 18, 2014
Proving my identity on Keybase.

Keybase proof

I hereby claim:

  • I am huertanix on github.
  • I am huertanix ( on keybase.
  • I have a public key whose fingerprint is 1482 F3BF 3F16 6BD4 3525 D55E 35D7 26BD AE09 F328

To claim this, I am signing this object:

huertanix / gist:5604863
Created May 18, 2013
huertor's limited exit policy
View gist:5604863
ExitPolicy accept *:20-23 # FTP, SSH, telnet
ExitPolicy accept *:43 # WHOIS
ExitPolicy accept *:53 # DNS
ExitPolicy accept *:79-81 # finger, HTTP
ExitPolicy accept *:88 # kerberos
ExitPolicy accept *:110 # POP3
ExitPolicy accept *:143 # IMAP
ExitPolicy accept *:194 # IRC
ExitPolicy accept *:220 # IMAP3
ExitPolicy accept *:389 # LDAP
huertanix / SimpleGeoRubyExample.rb
Created Mar 15, 2011
A full example on how to get latitude and longitude from SimpleGeo's Place API with a US postal address.
View SimpleGeoRubyExample.rb
# Using Ruby 1.9.2
require 'simplegeo'
require 'json'
full_address = "960 West University Dr #103 Tempe, AZ"
geo_options = {'radius' => 0.1}
closest_locations = SimpleGeo::Client.get_places_by_address(full_address, geo_options)
coordinates = JSON.parse(closest_locations.to_json)['features'][0]['geometry']['coordinates']
longitude = coordinates[0]
You can’t perform that action at this time.