Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
jennimckinnon / ngx_http_core_module
Created March 25, 2019 08:27
Enabling keep-alive on Nginx
keepalive_disable none;
@jennimckinnon
jennimckinnon / .htaccess
Created March 25, 2019 07:59
Enabling keep-alive on Apache servers.
<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>
@jennimckinnon
jennimckinnon / single.php
Created March 25, 2019 07:17
DNS prefetching example
<!-- DNS Prefetching -->
<link rel="dns-prefetch" href="//asset1.com">
<link rel="dns-prefetch" href="//asset2.com">
@jennimckinnon
jennimckinnon / style.css
Created February 26, 2019 10:57
A minified excerpt from the Twenty Nineteen WordPress theme.
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}
@jennimckinnon
jennimckinnon / style.css
Created February 26, 2019 10:54
Excerpt from the Twenty Nineteen WordPress theme.
/* Normalize */
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15;
time dig @8.8.8.8 your-site.com
time dig twitter.com
; <<>> DiG 9.10.6 <<>> twitter.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23072
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
time dig your-site.com
define('WP_DEBUG', true);
// Turn debugging on
define('WP_DEBUG', true);
// Tell WordPress to log everything to /wp-content/debug.log
define('WP_DEBUG_LOG', true);
// Turn off the display of error messages on your site
define('WP_DEBUG_DISPLAY', false);
// For good measure, you can also add the follow code, which will hide errors from being displayed on-screen