This file contains 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
@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! | |
) |
This file contains 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
# 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 |
This file contains 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
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%" |
This file contains 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
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(); |
This file contains 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
#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 |