Skip to content

Instantly share code, notes, and snippets.

@nathanbedford
nathanbedford / ihop-media-downloader.user.js
Last active April 24, 2016 04:58
Userscript: IHOP Media Downloader
// ==UserScript==
// @name IHOP Media Downloader
// @namespace http://nathanbedford.com/
// @version 0.6
// @description Save those mp3s and mp4s
// @author Nathan Bedford
// @match http://www.ihopkc.org.edgesuite.net/video-player/?&pid*
// @updateURL https://gist.github.com/nathanbedford/2339251945cc73d0375b114af871afee/raw/ihop-media-downloader.user.js
// ==/UserScript==
@nathanbedford
nathanbedford / Reinitialize Git Repositories
Last active March 28, 2017 22:58
Reinitializes all the git repositories in a given folder. Is recursive by default.
$gitProjectsFolder = "c:\stash"
"Building up folder list. This may take a minute..."
# this will search for git repos up to 4 levels deep
# (not using -Depth so we can support Powershell v4)
$projectFolders = Get-ChildItem $gitProjectsFolder\*,$gitProjectsFolder\*\*,$gitProjectsFolder\*\*\*,$gitProjectsFolder\*\*\*\* -Hidden -Directory
function DeleteIfExists($file){
If(Test-Path $file){