Skip to content

Instantly share code, notes, and snippets.

@a4099181
a4099181 / Ortho4XP.cmd
Last active December 2, 2016 19:35
One-liner to make many tiles with single command (it supports: 1. continuation - it skips those coords where destination folder exists; 2. custom configuration file per tile).
FOR /L %Y IN (48,1,55) DO FOR /L %X IN (12,1,23) DO IF NOT EXIST "zOrtho4XP_+%Y+0%X\Earth nav data" IF EXIST "zOrtho4XP_+%Y+0%X\Ortho4XP.cfg" ( "%USERPROFILE%\AppData\Local\Programs\Python\Python35\python.exe" Ortho4XP.py %Y %X "zOrtho4XP_+%Y+0%X\Ortho4XP.cfg" ) ELSE ( "%USERPROFILE%\AppData\Local\Programs\Python\Python35\python.exe" Ortho4XP.py %Y %X )
$names = "3DBuilder", "Bing", "CandyCrushSodaSaga", "Getstarted", "OfficeHub", "SkypeApp", "Solitaire", "Twitter", "Feedback"
ForEach($name in $names)
{
Get-AppxPackage -AllUsers | Where-Object { $_.Name.Contains($name) } | Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName.Contains($name) } | Remove-AppxProvisionedPackage -Online
}
@a4099181
a4099181 / putty-settings.cmd
Created April 9, 2016 20:49
PuTTY settings export
regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham