Skip to content

Instantly share code, notes, and snippets.

View mbenke's full-sized avatar

Marcin Benke mbenke

  • Warszawa, Poland
View GitHub Profile
@tehpeh
tehpeh / ddclient-cloudflare-macosx.md
Last active August 6, 2023 14:16
Dynamic DNS for Mac OS X with CloudFlare and ddclient

Update June 2019

The patch described below may no longer be necessary. CloudFlare instructions here. Perl module JSON::Any may still be required, however, see comments.

Description

Dyn's free dynamic DNS service will be ending on Wednesday, May 7th, 2014.

CloudFlare, however, has a little known feature that will allow you to update your DNS records via API or a command line script called ddclient. This will

-- Examples:
-- λ> analyze "1"
-- 1 :: Int
-- λ> analyze "(function(){})"
-- (function(){}) :: ? -> Undefined
-- λ> analyze "(function(){ var x = 1; })"
-- (function(){ var x = 1; }) :: ? -> Undefined
-- λ> analyze "(function(){ var x = 1; return x })"
-- (function(){ var x = 1; return x}) :: ? -> Int
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: