Skip to content

Instantly share code, notes, and snippets.

Avatar
😁

Jason Young ytechie

😁
View GitHub Profile
@ytechie
ytechie / gist:1442e0680b072b7e4dd21869443cd8a4
Last active Sep 30, 2019
MS Devshow episode downloader
View gist:1442e0680b072b7e4dd21869443cd8a4
@echo off
setlocal ENABLEDELAYEDEXPANSION
FOR /L %%x IN (99,-1,10) DO (
set url="http://traffic.libsyn.com/msdevshow/msdevshow_00%%x.mp3"
echo Downloading !url!
wget -O msdevshow_00%%x.mp3 !url!
)
@ytechie
ytechie / gist:a41593592b63d98cdae1
Last active Aug 29, 2015
Powershell Script to remove partial file name before the tilde
View gist:a41593592b63d98cdae1
# I had some files that had some garbage text attached and separated with a tilde. This script was used to remove that extra text.
# Example: blah ~ IMG123.jpg -> IMG123.jpg
Get-ChildItem "e:\photography" -Recurse -filter *~* | `
Foreach-Object {
$oldName = $_.Name
$pos = $oldName.IndexOf("~")
$newName = $oldName.Substring($pos + 2)
#write-host $_.fullname
@ytechie
ytechie / gist:462f45b6de88937cc32a
Last active Aug 29, 2015
DNSMadeEasy Dynamic IP Script
View gist:462f45b6de88937cc32a
cd %TEMP%
curl ifconfig.me > ip.txt
set /p ip=< ip.txt
del /q ip.txt
curl "https://cp.dnsmadeeasy.com/servlet/updateip?username=xxxx&password=yyyy&id=15027839&ip=%ip%"
@ytechie
ytechie / gist:8d718f597948f1761044
Created May 4, 2014
Quick and dirty table storage delete all rows
View gist:8d718f597948f1761044
class Program
{
static void Main(string[] args)
{
var storageAccount = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=ACCOUNT_NAME;AccountKey=ACCOUNT_KEY");
var tableClient = storageAccount.CreateCloudTableClient();
var table = tableClient.GetTableReference("elmaherrors");
// var query = new TableQuery();
View boxstarter
#RUN the following to kick off script-> START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/ytechie/9467867/raw/35bbd968b79f52b3e540c3203e8c8f611028eee9/boxstarter
#So Meta!
choco install chocolatey
choco install boxstarter
choco feature disable --name=checksumFiles
choco feature enable --name=allowGlobalConfirmation
#run the rest in the boxstarter shell