This is a curated list of potentially useful snippets that I’ve published.

C#

Javascript

  • require.jsrequire(...) npm dependencies from the browser console
  • ui-router-logging.js — automatic trace logging of Angular.js events and ui-router state transitions

*nix

  • csv2json — convert .csv files into .json files
  • mkgitconfig — sensible Git defaults
  • tun0 — openVPN integration with interfaces(5)

PowerShell

Python

  • getuser.py — lookup user id and name from the source (read: no environmental variables consulted). Cross-platform compatible (Windows, *nix).
  • knownpaths.py — Python wrapper around the SHGetKnownFolderPath Windows Shell function

Windows