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 | |
#set-conf bash thing | |
# for setting a configuration setting in a file defaulting with a : colon assignment | |
# and adds the setting if it doesn't find it. | |
# | |
#setconf <filepath&name> "string" "<setting>" [-y] | |
#i.e. setconf.sh /etc/datadog/datadog.yaml "api_key" "your_api_key_here" -y | |
# Color and formatting definitions | |
RED='\033[0;31m' |
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
#!/usr/bin/env bash | |
# script originally from https://tailscale.com/blog/steam-deck/ 11/16/2023 | |
set -euo pipefail | |
dir="$(mktemp -d)" | |
pushd . | |
cd "${dir}" | |
tarball="$(curl 'https://pkgs.tailscale.com/stable/?mode=json' | jq -r .Tarballs.amd64)" | |
version="$(echo ${tarball} | cut -d_ -f2)" |
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 | |
# set -x | |
if [ -n "$SUDO_USER" ]; then | |
echo "Hello $SUDO_USER!!" | |
elif [ "$EUID" -eq 0 ]; then | |
echo "This script should NOT be run as root, please run it as a regular user with sudo." | |
exit 1 | |
else | |
echo "Please run as a regular user with sudo." |
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 | |
# Update package list | |
sudo apt update | |
# Install PHP and required extensions | |
sudo apt install -y php php-cli php-fpm php-json php-common php-zip php-gd php-mbstring php-curl php-xml php-bcmath | |
# Install Composer | |
curl -sS https://getcomposer.org/installer | php |
OlderNewer