Skip to content

Instantly share code, notes, and snippets.

View leemills83's full-sized avatar

Lee Mills leemills83

  • Manchester, UK
  • 18:05 (UTC -12:00)
View GitHub Profile
@leemills83
leemills83 / Readme.md
Last active December 15, 2015 14:43 — forked from otaq/cloudflare_dyn_dns.sh
Updates CloudFlare records with your current public IP address

Updates CloudFlare records with your current public IP address

Takes the same basic arguments as A/CNAME updates in the CloudFlare Client API

Installation and Setup

Place the cloudflare_dyn_dns.sh somewhere you'll remember on your mac. Example: /Users/USERNAME/

Update the references and details in com.cloudflare.update.plist and place in /library/LaunchDaemons

@leemills83
leemills83 / snow.js
Created November 27, 2014 09:38
Snow
(function() {
var keyframeprefix = '',
domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
pfx = '',
elm = document.createElement('div');
for( var i = 0; i < domPrefixes.length; i++ ) {
if( elm.style[ domPrefixes[i] + 'AnimationName' ] !== undefined ) {
pfx = domPrefixes[ i ];
@leemills83
leemills83 / server.js
Created July 2, 2014 19:18
Simple Node.js http server
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname,
filename = path.join(process.cwd(), uri);
@leemills83
leemills83 / .gitconfig
Created March 13, 2013 15:09
Basic git config file
[push]
default = current
[alias]
# short aliases
me = config user.name
co = checkout
ci = commit
br = branch
rso = remote show origin
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cred\\ [%cn]" --decorate