Skip to content

Instantly share code, notes, and snippets.

View anttiviljami's full-sized avatar
💚
Be kind.

Viljami Kuosmanen anttiviljami

💚
Be kind.
View GitHub Profile
@anttiviljami
anttiviljami / woocommerce-free-shipping.php
Last active December 2, 2015 11:09
WooCommerce - Apply free shipping to all shipping methods
<?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
*/
@anttiviljami
anttiviljami / keybase.md
Created March 20, 2015 07:14
keybase.md

Keybase proof

I hereby claim:

  • I am anttiviljami on github.
  • I am anttiviljami (https://keybase.io/anttiviljami) on keybase.
  • I have a public key whose fingerprint is 29EF B0B5 2C32 0A18 5A8F A04F 586E BF8C 4FC4 AE36

To claim this, I am signing this object:

@anttiviljami
anttiviljami / gist:e6322189c975faf7529a
Last active August 29, 2015 14:11
WP Miitti Tampere 11.12.2014, show notes

WordPress

  • 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!

Nginx as HTTP Server

  • 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.