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
# Credits to MarkTiedemann for providing the original script and Splaxi for improving it | |
# https://gist.github.com/MarkTiedemann/c0adc1701f3f5c215fc2c2d5b1d5efd3 | |
$repo = "microsoft/PowerToys" | |
$filenamePattern = "*.msi" | |
$innerDirectory = $true | |
$preRelease = $false | |
if ($preRelease) { | |
$releasesUri = "https://api.github.com/repos/$repo/releases" |
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
version: '3.5' | |
volumes: | |
mysql_data: | |
external: true | |
driver: local | |
services: | |
mysql: | |
container_name: mysql |
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
New-NetFirewallRule -DisplayName "Unifi Controller TCP" -Direction Inbound -LocalPort 8080, 8443, 8880, 8843, 6789, 27117 -Protocol TCP -Action Allow | |
New-NetFirewallRule -DisplayName "Unifi Controller UDP" -Direction Inbound -LocalPort 3478, 5656-5699, 10001, 1900 -Protocol UDP -Action Allow |
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
@echo off | |
color 02 | |
SETLOCAL EnableDelayedExpansion | |
set s3-folder=C:\s3-upload | |
set test=specific-test-folder/ | |
set demo=specific-demo-folder/ | |
set prod=specific-production-folder/ | |
set test-link=https://bucket-name.s3.eu-central-1.amazonaws.com/Path/To/S3/Folder | |
set demo-link=https://bucket-name.s3.eu-central-1.amazonaws.com/Path/To/S3/Folder |
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
@echo off | |
call "%LOCALAPPDATA%\Apps\Apps\nutcracker.bat" | |
:: Get data and time. | |
for /f "skip=1" %%d in ('wmic OS GET LocalDateTime') do (set ldt=%%d & goto PARSELDT) | |
:PARSELDT | |
set date=%ldt:~0,8%_%ldt:~8,4% | |
SETLOCAL EnableDelayedExpansion |
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
New-NetFirewallRule -DisplayName "CloudFlare IPs" -Direction Inbound -LocalPort 80, 443 -Protocol TCP -Action Allow -RemoteAddress 173.245.48.0/20, 103.21.244.0/22, 103.22.200.0/22, 103.31.4.0/22, 141.101.64.0/18, 108.162.192.0/18, 190.93.240.0/20, 188.114.96.0/20, 197.234.240.0/22, 198.41.128.0/17, 162.158.0.0/15 ,104.16.0.0/12 ,172.64.0.0/13 ,131.0.72.0/22, 2400:cb00::/32, 2606:4700::/32, 2803:f800::/32, 2405:b500::/32, 2405:8100::/32, 2a06:98c0::/29, 2c0f:f248::/32 |
NewerOlder