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
adunkman / Product.wxs
Created Nov 2, 2012
Wix commands to auto-initialize an IIS website
View Product.wxs
<!-- Requires Application Initialization module in IIS 7.5 or (built in already to) IIS 8. -->
<!-- http://www.iis.net/downloads/microsoft/application-initialization -->
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product>
<!-- ... -->
<InstallExecuteSequence>
<Custom Action="CA.AppPoolSetStartMode" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom>
<Custom Action="CA.ApplicationSetPreloadEnabled" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom>
@adunkman
adunkman / index.html
Created Jan 14, 2012
Relay messages from RabbitMQ to a browser using Socket.io
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
(function () {
var onMessage = function (data) {
// Do something with the message data
};
@adunkman
adunkman / README
Created Apr 12, 2012
Detect ClickOnce support
View README
This detects the presence of ClickOnce in IE, Chrome (with extension), and
Firefox (with extension).
It doesn't work if Firefox is using Microsoft's .NET Framework Assistant when
adding .NET information to the User Agent string is turned off (the default
setting as of late). I personally worked around this by using server logic to
detect if the X-ClickOnceSupport header was set.
View neighborhoods.md

Ward 1

  • Adams Morgan
    • Named after two schools, Adams (a segregated black school) and Morgan (a segregated white school)
    • Main commercial district is along 18th St NW
    • Adams Morgan Day Festival is held annually on the Second Sunday of September
    • Farmer's market on Saturdays
  • Columbia Heights
  • Howard University
  • Kalorama
View excerpt.md

Taken from element.getBoundingClientRect MDN documentation:

For cross-browser compatibility, use window.pageXOffset and window.pageYOffset instead of window.scrollX and window.scrollY, except use (((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.ScrollLeft == 'number' ? t : document.body).ScrollLeft and (((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.ScrollTop == 'number' ? t : document.body).ScrollTop when window.pageXOffset and window.pageYOffset (and window.pageXOffset and window.pageYOffset) are undefined.

Oye.

@adunkman
adunkman / gist:5631298
Last active Dec 17, 2015
Execute git status on each directory that is a git repository in the current directory.
View gist:5631298
ls -dx1 */.git/ | sed 's/\(.*\)\/\.git\//echo \1: \&\& cd \1 \&\& git status --porcelain \&\& cd ..; /' | bash
View nodekc.md

Next Meetup: Tuesday, June 18

Topics:

  • Cross-meetup meeting (game group?) - 6
  • Debugging issues with node.js (including benchmarking) - 6
  • gotcha's in node.js - 7
  • native bindings - 1
  • Socket frameworks (socket stream / meteor / derby) - 5
  • node.js require("domain") and so can you - 4
  • Typescript - 0
View topics
# Next Meetup: Tuesday, january 15
# Topics:
- connect/express middleware - 3
- non-http networks - 8 - DUN DUN DUN
- Torrent
- UDP
- Multicast (Frank)
- XMPP (XTENSIBLE MESSAGING AND PRESENCE PROTOCOL)
- Serial
@adunkman
adunkman / kill-core-audio-osx.sh
Created Feb 1, 2013
Select an Airplay device for sound output from OS X and have it immediately reset to the default device? Kill coreaudiod.
View kill-core-audio-osx.sh
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
@adunkman
adunkman / gist:4164506
Created Nov 28, 2012
node-v0.8.11-x64.msi.log
View gist:4164506
=== Logging started: 11/28/2012 15:06:17 ===
Action start 15:06:17: INSTALL.
Action start 15:06:17: FindRelatedProducts.
Action ended 15:06:17: FindRelatedProducts. Return value 1.
Action start 15:06:17: LaunchConditions.
Action ended 15:06:17: LaunchConditions. Return value 1.
Action start 15:06:17: ValidateProductID.
Action ended 15:06:17: ValidateProductID. Return value 1.
Action start 15:06:17: CostInitialize.
Action ended 15:06:17: CostInitialize. Return value 1.
You can’t perform that action at this time.