Skip to content

Instantly share code, notes, and snippets.

View 1000heads-luke's full-sized avatar

Luke Stevenson 1000heads-luke

View GitHub Profile
@1000heads-luke
1000heads-luke / wp-permissions-script
Created July 19, 2024 12:44 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # <-- wordpress owner
WP_GROUP=changeme # <-- wordpress group
WP_ROOT=/home/changeme # <-- wordpress root directory
@1000heads-luke
1000heads-luke / htaccess
Last active May 6, 2024 23:53 — forked from cristiroma/htaccess
.htaccess file for production
FileETag MTime Size
<IfModule mod_expires.c>
ExpiresActive on
# Default Cache of 1 month
ExpiresDefault "access 1 month"
# HTML - 1 month
ExpiresByType text/html "access 1 month" # .html
@1000heads-luke
1000heads-luke / bootstrap.html
Last active May 15, 2020 04:54 — forked from MrChuffmanSnippets/index.html
HTML5: Blank Template
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">