Skip to content

Instantly share code, notes, and snippets.

View rowanmanning's full-sized avatar
📢
honk

Rowan Manning rowanmanning

📢
honk
View GitHub Profile
@rowanmanning
rowanmanning / README.md
Last active December 21, 2015 01:39
nginx port 80 firewall hack thing

All assumes you're running nginx on port 8080. Change ports to suit your needs.

  1. Copy ipfw.plist into /Library/LaunchDaemons/ipfw.plist
  2. Copy ipfw.conf into /etc/ipfw.conf

If you want this to work straight away, you may need to run:

$ sudo launchctl load /Library/LaunchDaemons/ipfw.plist
@rowanmanning
rowanmanning / facepalm.coffee
Last active December 17, 2015 20:39
Hubot Animated Facepalm
# Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@rowanmanning
rowanmanning / percentages.css
Created March 27, 2013 15:15
Say NO to inline styles in progress bars... ಠ_ಠ
.progress-1 { width: 1%; }
.progress-2 { width: 2%; }
.progress-3 { width: 3%; }
.progress-4 { width: 4%; }
.progress-5 { width: 5%; }
.progress-6 { width: 6%; }
.progress-7 { width: 7%; }
.progress-8 { width: 8%; }
.progress-9 { width: 9%; }
.progress-10 { width: 10%; }
@rowanmanning
rowanmanning / wesley-client.html
Created March 21, 2013 07:33
Testing out Wesley (https://github.com/adlawson/wesley) from a simple browser client. You can test this with the command line client which comes bundled with Wesley.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Simple Wesley Client</title>
</head>
<body>
@rowanmanning
rowanmanning / useful-mac-tools.md
Created March 18, 2013 11:11
Useful Mac tools that I use all the time
@rowanmanning
rowanmanning / library.scss
Created January 17, 2013 13:24
Sass defaults example
$foo: 'bar' !default;
// ...do stuff
@rowanmanning
rowanmanning / list-colors.bash
Created November 29, 2012 09:54
Output all 255 terminal colors (Works on a Mac anyway...)
for i in {0..255}; do echo "$i: $(tput setaf $i)reg $(tput bold)bld$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)und$(tput sgr0)"; done
@rowanmanning
rowanmanning / demo.html
Last active October 12, 2015 15:08
Simple Konami Code with jQuery
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>↑ ↑ ↓ ↓ ← → ← → B A</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="konami.js"></script>
<script>
// On document ready
@rowanmanning
rowanmanning / instructions.md
Created October 25, 2012 13:31
Git Autocompletion On Mac OS X

Git Autocompletion On Mac OS X

(based on this post which I don't like because they tell you to add a bash file to your home directory)

Run the following commands to begin:

cd /usr/local/bin && curl https://github.com/git/git/raw/master/contrib/completion/git-completion.bash -OL