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
<?php | |
define( 'WP_MEMORY_LIMIT', '512M' ); | |
define( 'WP_MAX_MEMORY_LIMIT', '512M' ); | |
define( 'DISALLOW_FILE_EDIT', true ); | |
define( 'COMPRESS_CSS', true ); | |
define( 'COMPRESS_SCRIPTS', true ); | |
define( 'CONCATENATE_SCRIPTS', true ); | |
define( 'ENFORCE_GZIP', true ); | |
define( 'WP_CACHE', true ); | |
define( 'DISABLE_WP_CRON', true ); |
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
# force http to https | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] | |
# disable directory listing | |
Options -Indexes +FollowSymLinks -MultiViews | |
# turn off Apache version | |
ServerSignature Off |
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
<?php | |
/** | |
* add security headers to Wordpress | |
* | |
* @author Mark Hall <https://markhall.dev> | |
*/ | |
function add_headers() | |
{ | |
header( 'Strict-Transport-Security: max-age=31536000' ); |
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
!"#$%&\'()*+,-./012 | |
3456789:;<=>?@ABCDEF | |
GHIJKLMNOPQRSTUVWXYZ | |
[\\]^_`abcdefghijklm | |
nopqrstuvwxyz{|}~ | |
//base_width = 64; | |
tilePlainFont.initTile( plainFont, 64, 63, 32 ); | |
tilePlainFont.addSpecial(" ", 30 ); | |
tilePlainFont.addSpecial("!", 17 ); |
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
{"version":1,"resource":"file:///home/markhall/Downloads/100552-jan-23-campaign-impulse-landing-page-v6-html/thankyou.php","entries":[{"id":"zXE5.php","timestamp":1671628436569},{"id":"Tb1u.php","timestamp":1671628456793},{"id":"JqHb.php","source":"searchReplace.source","timestamp":1671628482469}]} |
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
# store all ssl's in home | |
mkdir $HOME/ssl-certs | |
cd ~/ssl-certs | |
mkcert -install | |
# playground.test is our test site | |
mkcert playground.test | |
# apache conf files | |
cd /etc/apache2/sites-available/ |
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
form.wpcf7-form.sent * | |
{ | |
display: none; | |
} | |
div.wpcf7-response-output | |
{ | |
display: block; | |
padding: 0; | |
border: 0; |
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
# ignore everything in the root except the "wp-content" directory. | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# "mu-plugins", "plugins", "themes" directory | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
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
# add these to ~/.gitconfig | |
[alias] | |
st = status | |
br = branch | |
ci = commit | |
co = checkout | |
dc = diff --cached | |
tree = log --all --decorate --oneline --graph |
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
<hr /> | |
<div class="row"> | |
<div class="col-md-4"> | |
[text* your-name class:form-control placeholder "Name (required)"] | |
</div> | |
<div class="col-md-4"> | |
[email* your-email class:form-control placeholder "Email (required)"] |