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/sh | |
# Increase max user watches | |
# Option 1: Sysctl | |
sudo sysctl fs.inotify.max_user_watches=1048576 | |
sudo nano /etc/sysctl.d/99-sysctl.conf | |
sudo sysctl --system | |
# Option 2 |
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 | |
rsync -avz --exclude-from '.rsync-exclude-list.txt' \ | |
-e "ssh -i ~/.ssh/[ssh key]" \ | |
--progress * \ | |
-t [USER]@[IP]:~/[dest] |
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 [ $# -lt 3 ]; then | |
echo "usage: ./setup_ddb.sh db_name db_username db_password" | |
exit 1 | |
fi | |
DB_NAME="$1"; | |
DB_USERNAME="$2"; | |
DB_PASSWORD="$3"; |
NewerOlder