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
| ## Add this to your .bash_rc / .zshrc | |
| # Alias for vim-style exit in Bash/Zsh | |
| alias :q=exit |
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
| # Define ranges | |
| $NetworkRanges = @( | |
| '10.11.0.0/24' | |
| '10.11.1.0/24' | |
| '10.11.12.0/24' | |
| '10.11.24.0/24' | |
| '10.11.2.0/24' | |
| ) | |
| # Bad - does not sort according to address spaces, only alphanumerical :( |
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
| #!/bin/bash | |
| # Removes old revisions of snaps | |
| # CLOSE ALL SNAPS BEFORE RUNNING THIS | |
| set -eu | |
| snap list --all | awk '/disabled/{print $1, $3}' | | |
| while read snapname revision; do | |
| snap remove "$snapname" --revision="$revision" | |
| done |
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
| #!/bin/bash | |
| # Check privileges | |
| if [[ "$(id -u)" -ne 0 ]] | |
| then echo Please run this script as root or using sudo! | |
| exit | |
| fi | |
| # Print current version | |
| export PATH="${PATH}:/usr/local/go/bin" |
OlderNewer