This file contains hidden or 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 | |
# | |
# 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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
javascript: (function() { | |
function callback() { | |
function l() { | |
$("strong.headings_detector").remove(); | |
if( !$('style#headings_detector') ){ | |
$('head').append( | |
'<style id="headings_detector">'+ | |
'.headings_detector {'+ | |
'color:#FFF;font-weight:bold;font-size:small;background:yellow;'+ | |
'}'+ |
This file contains hidden or 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
jQuery(function($){ | |
$('time[datetime]').each(function(k,v){ | |
const $t = $(this); | |
const dt = $t.attr('datetime'); | |
const d = new Date(Date.parse(dt)); | |
if( !d ) | |
return; | |
const s = d.toLocaleString( | |
window.navigator.language , |
This file contains hidden or 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
/* | |
.font-face() | |
Adds Webfont File (WOFF & WOFF2) | |
*/ | |
.font-face(@font-family, @font-name, @font-root: '/', @font-weight: normal, @font-style: normal ){ | |
@font-face { | |
font-family: @font-family; | |
src: url('@{font-root}@{font-name}.woff2') format('woff2'), | |
url('@{font-root}@{font-name}.woff') format('woff'); |
This file contains hidden or 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
<!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"> |