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
$subnet24 = "10.10.1" | |
1..254 | | |
foreach-object { | |
$ip = $subnet24 + "." + $_ | |
if (test-connection $ip -count 1 -quiet) { Write-Host "USED:$ip" } else { Write-Host "EMPT:$ip" } | |
} | |
#USED:10.10.2.1 | |
#EMPT:10.10.2.2 |
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
source ~/foreman/.env | |
BIND=0.0.0.0 bundle exec puma -w 1 -t 1 -p $PORT --preload |
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
------------------------------------------------------------------------------------------------------------------------------------ | |
Get-Help Get-Snapshot | |
Get-Help XXX (cmdlet) | |
REMARKS | |
To see the examples, type: "get-help Get-Snapshot -examples". | |
For more information, type: "get-help Get-Snapshot -detailed". | |
For technical information, type: "get-help Get-Snapshot -full". | |
For online help, type: "get-help Get-Snapshot -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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |