Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ytechie's full-sized avatar
😁

Jason Young ytechie

😁
View GitHub Profile
@ytechie
ytechie / gist:8d718f597948f1761044
Created May 4, 2014 20:06
Quick and dirty table storage delete all rows
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();
@ytechie
ytechie / gist:462f45b6de88937cc32a
Last active August 29, 2015 14:02
DNSMadeEasy Dynamic IP Script
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:a41593592b63d98cdae1
Last active August 29, 2015 14:08
Powershell Script to remove partial file name before the tilde
# 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
#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
@ytechie
ytechie / gist:1442e0680b072b7e4dd21869443cd8a4
Last active September 30, 2019 11:51
MS Devshow episode downloader
@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!
)