Skip to content

Instantly share code, notes, and snippets.

Andrew Dunkman adunkman

Block or report user

Report or block adunkman

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
adunkman /
Created Aug 20, 2012
Debugging Node.js Applications

Packages reviewed

  1. node-inspector
  2. node-webkit-agent
  3. node-codein



adunkman / nginx.conf
Created May 14, 2012
Load balancing across applications with nginx
View nginx.conf
events {
worker_connections 1024;
http {
upstream appname {
adunkman /
Created May 4, 2012
StrangeLoop Session Proposal

#Title TBD

###Abstract How many languages and APIs can we squeeze into an hour? Let's take a tour through as many popular REST APIs as we can by writing 5 minute applications in a variety of languages (JavaScript, Ruby, Python, C#, etc). We'll discuss some of the finer points of REST API design and why some languages are naturally better for consuming web services than others.

Talk Type: Survey
Track: /etc
Video Approval: Yes
Talk Duration: 50 minutes
adunkman / gist:2580972
Created May 2, 2012 — forked from hellosmithy/transparency.styl
Cross-browser alpha transparent background CSS (rgba) Stylus mixin
View gist:2580972
// background transparency
background-transparency(color, alpha = 1)
ms-color = argb(color, alpha)
background rgb(color)
background rgba(color, alpha)
.lt-ie8 &
zoom 1
.lt-ie9 &
background transparent
filter s('progid:DXImageTransform.Microsoft.gradient(startColorstr=%s,endColorstr=%s)', ms-color, ms-color)
adunkman / index.html
Created Jan 14, 2012
Relay messages from RabbitMQ to a browser using - client
View index.html
<!DOCTYPE html>
<script src="/"></script>
(function () {
var onMessage = function (data) {
// Do something with the message data
adunkman / lessjs.rb
Created Apr 14, 2011 — forked from andyfowler/lessjs.rb
Jekyll plugin to render LESS ( files during generation.
View lessjs.rb
module Jekyll
class LessCssFile < StaticFile
def write(dest)
# do nothing
class LessJsGenerator < Generator
safe true
adunkman / sheets-poc.html
Created Sep 8, 2015
A quick proof-of-concept to use Google Sheets as a backend.
View sheets-poc.html
<!DOCTYPE html>
<meta charset="UTF-8">
<script src=""></script>
<script src=""></script>
(function () {
var key = "1HwGVE-MqVmeLwcfljmBmuTD55arVxsElG3C2urJadAw";
var url = "" + key + "/od6/public/values?alt=json";
adunkman / index.js
Last active Aug 29, 2015
Simple proof-of-concept for Content-Security-Policy in report-only mode.
View index.js
var app = require("express")();
// JSON parse the body of requests with `application/csp-report` content type.
type: "application/csp-report"
// Page with CSP header (in report-only mode).
app.get("/", function (req, res) {
res.setHeader("Content-Security-Policy-Report-Only", [
adunkman / bookmarklet.js
Created Jun 19, 2015
Hacking the Harvest Platform
View bookmarklet.js
(function () {
var github = function () {
var parts;
if (parts = window.location.pathname.match(/^\/([^\/]+\/[^\/]+)\/(?:issues|pull)\/(\d+)/)) {
var repo = parts[1];
var issue = parts[2];
var url = window.location.href;
var name = document.querySelector(".js-issue-title").innerText;[
adunkman /
Created May 5, 2015
Platform bookmarklet
You can’t perform that action at this time.