This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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){ |