Skip to content

Instantly share code, notes, and snippets.

@k9982874
k9982874 / archlinux-server-optimization.sh
Last active August 15, 2023 19:05
archlinux-server-optimization.sh
#!/bin/sh
# Archlinux Server Optimization
cat > /etc/systemd/user.conf <<EOF
DefaultLimitNOFILE = 1048576
EOF
cat > /etc/systemd/system.conf <<EOF
DefaultLimitNOFILE = 2097152
EOF
@k9982874
k9982874 / archive
Last active November 26, 2021 02:01
router.home.lan
#!/bin/bash
if [ -z "$PASS" ]; then
echo "Please setup password for the archive"
exit 0
fi
ROOT=/mnt/data/backups/archives
SOURCE=/mnt/data/workspace