FOR /R .\Orthophotos %F IN (PL_15/*.jpg) DO (CD %~pF && "C:\Program Files\GIMP 2\bin\gimp-console-2.8.exe" ^
-i -b "(greeny \"PL_15\\%~nxF\" \"Ortho4XP_PL15_64\")" -b "(gimp-quit 0)")
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
regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham |
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
$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 | |
} |
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
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 ) |
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
Function Convert-ToPackageReference | |
{ | |
Param ( [Parameter( Mandatory, ValueFromPipeline )][String] $inputUri, | |
[String] $stylesheetUri = "https://gist.githubusercontent.com/a4099181/074a6c3dd524ea0d343382137492399c/raw/cdd0fb31efd70c4c0f8c86ddb314de86ab8972e8/Convert-ToPackageReference.xsl", | |
[String] $resultsFile = [System.IO.Path]::GetTempFileName() ) | |
Process { | |
$xslt = New-Object System.Xml.Xsl.XslCompiledTransform | |
$xslt.Load( $stylesheetUri ) | |
$xslt.Transform( $inputUri, $resultsFile ) |
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
Function Out-AIRACCycles | |
{ | |
Param ( [DateTime] $currentDay = ( Get-Date ) | |
, [DateTime] $initialDay = ( Get-Date -Year 2015 -Month 1 -Day 8 ) | |
, $interval = 28 | |
, $culture = [System.Globalization.CultureInfo]::GetCultureInfo("en-US") ) | |
$offset = (New-TimeSpan -Start $initialDay -End ( Get-Date -Year ( $currentDay.Year - 1 ) -Month 1 -Day 1 ) ).Days | |
$offset .. ( $offset + 365 * 3 ) | |
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
/* | |
* 6-sided play cube | |
*/ | |
$fn = 128 ; | |
WIDTH = 64 ; | |
DOT_DEEP = 3 ; | |
DOT_DENSITY = .2 ; | |
DOT_TABLE = [ | |
[ 2, [ 2, 3, 4, 5, 6 ] ] |
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
Param( | |
$xplane_dir = ".", | |
$chart_list = ( Get-ChildItem -Recurse -Path "$($xplane_dir)\Aircraft" -Filter "chart_list.txt" | Select-Object -First 1 ), | |
[Parameter(Mandatory=$true)] | |
$depICAO, | |
[Parameter(Mandatory=$true)] | |
$dstICAO, | |
$charts_dir = "$($env:USERPROFILE)\OneDrive\Charts" | |
) |
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
FOR %I IN (*.pdf) DO magick ^ | |
-density 300 "%I[0]" -trim -units pixelsperinch ^ | |
-density 300 -resize "1304x1304^" -rotate "-90>" ^ | |
-colorspace gray -background white -flatten ^ | |
-gravity west -extent "2048x2048" %~nI.png |
OlderNewer