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
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
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 |
OlderNewer