Category Archives: recipes

Recursively change last modified date on all files

find . -exec touch {} \; Useful as a cache busting technique  to force browsers to re-download static files served from a website.

Posted in recipes | Leave a comment

Get video transcript from youtube

In the Chrome developer console type if(yt.config_.TTS_URL.length) window.location.href=yt.config_.TTS_URL+”&kind=asr&fmt=srv1&lang=en” Source: http://www.labnol.org/internet/transcribe-video-to-text/28914/

Posted in recipes | Leave a comment

Quick hit recipes

Show hidden files in Mac file open dialog ** Command+Option+. Delete 0 size files in *nix systems ** find . -name ‘file*’ -size 0 -print0 | xargs -0 rm

Posted in recipes, Uncategorized | Leave a comment

Simple static web server

Using Node.js & Express.js var express = require(“express”); app = express(); app.use(express.static(“.”)); var server = app.listen(80, function () { console.log(“Example app listening at http://%s:%s”, server.address().address, server.address.port); });

Posted in node.js, recipes | Leave a comment

Automating Chrome to download photos from Yahoo groups

The PTA at my kids school have been using Yahoo Groups to communicate for several years.   Over the years 1000s of photos have been uploaded to the group.   Yahoo groups doesn’t have a way to download photos in … Continue reading

Posted in node.js, recipes | Leave a comment

Disabling Windows firewall

Sometimes while troubleshooting I temporarily disable the Windows firewall using the following command netsh advfirewall set allprofiles state off Today when I tried I received an advisory warning In future versions of Windows, Microsoft might remove the Netsh functionality for … Continue reading

Posted in recipes | Tagged | Leave a comment

Using Fiddler with node.js on Microsoft Windows

The node.js request module supports proxies. There are a couple of different ways to enable this. I find this approach nifty as it doesn’t involve changes to the app or the app’s config. Open a Windows command prompt and type … Continue reading

Posted in node.js, recipes | 1 Comment