I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
# These are directives to use for migrating wordpress sites into wordpress-palvelu | |
# In this example '123.123.123.123' is the source machine and 'www.example.com' is the site which is migrated. | |
# This migration mechanism demands wp-cli to be installed in both machines. | |
# More information about installing wp-cli: http://wp-cli.org | |
# Source machine: 123.123.123.123 | |
# Source machine username: wp-user | |
# Wordpress siteurl: www.example.com | |
# ssh into your source machine |
<?php | |
/* | |
Plugin Name: WP Redis | |
Plugin URI: http://github.com/alleyinteractive/wp-redis/ | |
Description: WordPress Object Cache using Redis. Requires phpredis (https://github.com/nicolasff/phpredis). | |
Version: 0.1 | |
Author: Matthew Boynes, Alley Interactive | |
Author URI: http://www.alleyinteractive.com/ | |
Install this file to wp-content/object-cache.php |
{ | |
"name": "roots/bedrock", | |
"type": "project", | |
"license": "MIT", | |
"description": "A modern WordPress stack", | |
"homepage": "http://roots.io/wordpress-stack/", | |
"authors": [ | |
{ | |
"name": "Scott Walkinshaw", | |
"email": "[email protected]", |
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://wp-languages.github.io" | |
}, | |
{ | |
"type": "composer", | |
"url": "https://wpackagist.org" | |
} |
## | |
# I wanted to use same ssl client certificate CA in nginx for multple client certs | |
# but restrict the users outside our organisation accessing everything. | |
# Because I can decide what to put into the emailAddress I can force verify everything and only pass the proper users. | |
## | |
## | |
# This way you can restrict users only with email addresses from @koodimonni.fi | |
# Put this into http context in nginx configs | |
## |
#!/usr/bin/env ruby | |
require 'fileutils' | |
def createNewFolder | |
picture_dir = '' | |
loop do | |
<?php | |
/* | |
Plugin Name: Debug filters for WordPress | |
Version: 0.1 | |
Author: Onni Hakala | |
Author URI: http://seravo.fi | |
*/ | |
if (isset($_GET['debug']) && $_GET['debug']=='filters') { | |
//remove_filter( 'the_content','capital_P_dangit'); |
<?php | |
/** | |
* Leaflet Maps Marker Plugin - settings class | |
* based on class by Alison Barrett, http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/ | |
*/ | |
//info prevent file from being accessed directly | |
if (basename($_SERVER['SCRIPT_FILENAME']) == 'class-leaflet-options.php') { die ("Please do not access this file directly. Thanks!<br/><a href='https://www.mapsmarker.com/go'>www.mapsmarker.com</a>"); } | |
class Class_leaflet_options { | |
private $panes; | |
private $sections; |
#!/bin/sh | |
# | |
# Automatically adds branch name and branch description to every commit message. | |
# | |
## | |
# Installation on OSX: | |
# $ brew install aspell | |
# Then add Your custom word list to home folder | |
# The first line needs to be personal_ws-1.1 en 0 |