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
#/bin/bash | |
[ $(pwd) != "/home" ] && cd /home | |
[[ -n $(lsof -ti:80) ]] && caddy stop --config /home/Caddyfile | |
[[ $1 != "-os" ]] && caddy start --config /home/Caddyfile |
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
#/bin/bash | |
# Usage: | |
## . checkFor | |
## checkFor PACKAGE | |
checkFor() { | |
langs=( | |
mysql | |
mariadb |
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
if ! command -v composer > /dev/null ; then | |
echo "Composer is not installed" | |
exit 1 | |
do | |
suggests=$(composer suggests | grep -ioP '[A-Za-z0-9]+/[A-Za-z0-9]+:') | |
suggests=$(echo $suggests | grep -ioP '[A-Za-z0-9]+/[A-Za-z0-9]+') | |
echo "$suggests" > suggests |
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
#!/bin/bash | |
if [[ $1 ]]; then | |
length=$1 | |
else | |
length=64 | |
fi | |
tr -dc A-Za-z0-9_ < /dev/urandom | head -c $length | xargs |