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 sss() { | |
| if pgrep ssh-agent &> /dev/null; then | |
| echo "ssh-agent already running. Do you want to restart it? [Y/n]" | |
| read -rs -k 1 Res | |
| case "${Res}" in | |
| n|N) | |
| return 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
| #!/bin/bash | |
| # UNCOMMENT AND ENTER CLAIM KEY HERE https://www.plex.tv/claim/ | |
| # PLEX_CLAIM="" | |
| PLEX_PATH=/home/plex | |
| set -e | |
| # check claim key has been entered |
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/zsh | |
| if [[ ! $1 =~ "^[0-9a-fA-F]{6}$" ]]; then | |
| echo "Usage: $(basename $0) <hexcode> [text]" | |
| echo "Examples: $(basename $0) 00ff00" | |
| echo " $(basename $0) ff00ff this is magenta" | |
| exit | |
| fi | |
| r=$(echo $1 | cut -c 1-2) |