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 hidden or 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
@{ | |
RegistryKey = ` | |
Get-ItemProperty -Path HKCU:\Software\seb!\Send-ChangedDynamicIP; | |
Current= ` | |
( Invoke-WebRequest -Uri https://api.ipify.org?format=json -UseBasicParsing ).Content ` | |
| ConvertFrom-Json ` | |
| Select-Object -ExpandProperty ip; | |
Mac = ` | |
Get-WmiObject win32_networkadapterconfiguration ` | |
| Where-Object DefaultIPGateway ` |
This file contains hidden or 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 hidden or 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 hidden or 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
FROM alpine | |
VOLUME [ "/demoCA" ] | |
RUN apk update && \ | |
apk add --no-cache openssl git perl && \ | |
rm -rf /var/cache/apk/* | |
RUN ln -s /etc/ssl/misc/CA.pl /usr/bin/ca |
This file contains hidden or 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 hidden or 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
Get-ChildItem -Directory | | |
Select-Object ` | |
@{ N="Directory"; E={ $_.Name } }, ` | |
@{ N="Size"; E={ (Get-ChildItem -Recurse -File -Path $_.FullName | Measure-Object -Property Length -Sum).Sum } } | | |
Sort-Object -Property Size -Descending |
This file contains hidden or 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 hidden or 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 |
NewerOlder