route /dav* {
rewrite /dav /dav/
basicauth {
bob <password>
alice <password>
}
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
# You got this warning -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) | |
# Solution | |
locale-gen en_US.UTF-8 | |
# Choose en_US.UTF-8 | |
dpkg-reconfigure locales | |
# Edit | |
nano /etc/default/locale |
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 | |
readonly -a locations=("atlanta" \ | |
"dallas" \ | |
"frankfurt" \ | |
"fremont" \ | |
"london" \ | |
"mumbai1" \ | |
"newark" \ | |
"singapore" \ |
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 | |
# GitHub user/repo | |
GITHUB_REPO="xmrig/xmrig" | |
# Use GitHub API to fetch the latest release information | |
LATEST_RELEASE_INFO=$(curl -s https://api.github.com/repos/$GITHUB_REPO/releases/latest) | |
# Parse version and tarball URL from the release information | |
XMRIG_VERSION=$(echo "$LATEST_RELEASE_INFO" | jq -r '.tag_name') |
apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
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 | |
# Function to download file | |
download_file() { | |
url=$1 | |
file_name=$2 | |
if command -v wget > /dev/null; then | |
wget "$url" -O "$file_name" | |
elif command -v curl > /dev/null; then |
iptables -t mangle -I POSTROUTING 1 -j TTL --ttl-set 65
References
NewerOlder