Skip to content

Instantly share code, notes, and snippets.

View monkishtypist's full-sized avatar
👻

Tim Spinks monkishtypist

👻
  • BASIC/DEPT®
  • PNW
View GitHub Profile
@monkishtypist
monkishtypist / hosts
Last active May 1, 2024 15:08
Nginx virtual host example for Windows Subsystem for Linux (WSL)
# Location: /mnt/c/windows/system32/drivers/etc/hosts
127.0.0.1 virtualhost.local www.virtualhost.local
@monkishtypist
monkishtypist / wp_permissions.sh
Last active August 30, 2023 15:56
WordPress file/folder permissions for Amazon EC2 Ubuntu instance
#!/bin/bash
# Location: Anywhere
# Add existing 'ubuntu' user to 'www-data' group
sudo usermod -a -G www-data ubuntu;
# Set the ownership of the files/directories
sudo chown -R www-data:www-data /var/www/html/;
# Set group ownership inheritance