This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
# This script contains helper for sha256 validating your downloads | |
# | |
# Source: https://gist.github.com/onnimonni/b49779ebc96216771a6be3de46449fa1 | |
# Author: Onni Hakala | |
# License: MIT | |
## | |
# Stop program and give error message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create all variables used in this Terraform run | |
variable "aws_access_key" {} | |
variable "aws_access_secret_key" {} | |
variable "aws_bucket_name" {} | |
variable "aws_region_main" { | |
default = "eu-west-1" | |
} | |
variable "aws_region_replica" { | |
default = "eu-central-1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Replace-uploads.php | |
* This replaces all accents from your uploads | |
* you can run this with wp-cli: $ wp eval-file replace-uploads.php | |
*/ | |
/** | |
* cd to right path before changes | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# Script to run WP All Import scripts sychronously with cron | |
## | |
# This is default wp core directory for us | |
ABSPATH="/var/www/project/wp" | |
function usage() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "digitalocean_token" { | |
description = "This is the Digitalocean API-token which is used to setup the machines." | |
} | |
variable "digitalocean_region" { | |
description = "For example: nyc1, nyc2, ams2, ams3, fra2" | |
default = "fra1" | |
} | |
variable "digitalocean_dokku_size" { | |
description = "Instance size: 512mb, 1gb, 2gb, 4gb ..." | |
default = "2gb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://wp-languages.github.io" | |
}, | |
{ | |
"type": "composer", | |
"url": "https://wpackagist.org" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# 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 | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
MAINTAINER Onni Hakala <onni.hakala@geniem.com> | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN set -x \ | |
# Add all deb-src addresses | |
&& echo "deb http://deb.debian.org/debian jessie main\n\ | |
deb-src http://deb.debian.org/debian jessie main\n\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
NewerOlder