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
location /blog/ { | |
proxy_pass http://YOUR_IP_ADDRESS/; # this last forward slash is important | |
proxy_http_version 1.1; | |
proxy_cache_bypass $http_upgrade; | |
# Proxy headers | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; |
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
cat > /etc/ssh/sshd_config << "EOF" | |
Include /etc/ssh/sshd_config.d/*.conf | |
#Port 22 | |
#AddressFamily any | |
#ListenAddress 0.0.0.0 | |
#ListenAddress :: | |
... | |
EOF |
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
mysql -u root --password="${PASSWORD}" <<EOF | |
CREATE DATABASE ${DB_NAME}; | |
CREATE USER '${APP_USER}'@'localhost' IDENTIFIED BY '${APP_PASSWORD}'; | |
GRANT ALL ON ${DB_NAME}.* TO '${APP_USER}'@'localhost' | |
EOF |
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
ls -s ~/path/to/notes.bbprojectd ~/Library/Application Support/BBEdit/Startup Item |
OlderNewer