Skip to content

Instantly share code, notes, and snippets.

ak5 /
Created Dec 25, 2016 — forked from md5/
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx

Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend


Build a copy of this image:

git clone git:// docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
ak5 / host-manager
Created Oct 8, 2016 — forked from nddrylliog/host-manager
A command-line utility to manage the /etc/hosts file.
View host-manager
# Idea and interface taken from
addusage="Usage: `basename $0` -add host address"
remusage="Usage: `basename $0` -remove host"
case "$1" in
if [ $# -eq 3 ]; then
if [[ -n $(grep "^$3.*[^A-Za-z0-9\.]$2$" ${path}) ]]; then
ak5 / woocommerce-order-stuff.php
Created Oct 7, 2016
WooCommerce Order Creation + Updating
View woocommerce-order-stuff.php
// this is the current id of an order in test env
$id = 44;
$order = wc_get_order($id);
/** OR **/
// create a new order like so
$address = array(
View electronic-weechat.desktop
[Desktop Entry]
Name=Electronic Wechat
Comment=Wechat Desktop Client
Path=/home/ak5/Repos/electronic-wechat/dist/Electronic WeChat-linux-x64/
Exec=/home/ak5/Repos/electronic-wechat/dist/Electronic\ WeChat-linux-x64/Electronic\ WeChat
Icon=/home/ak5/Repos/electronic-wechat/dist/Electronic WeChat-linux-x64/resources/app/assets/icon.png
ak5 / rtl8192ce.conf
Created Sep 20, 2014
View rtl8192ce.conf
# Disable powersaving
options rtl8192ce fwlps=0 ips=0
# Use software control instead
#options rtl8192ce swlps=1
ak5 /
Last active Aug 29, 2015
Latest Archlinux Kernel on DigitalOcean

Archlinux on DigitOcean


Change Password

Since we have such an outdated image starting out, networking might fail once we install a newer kernel. That's why we better add a password if we are accessing our droplets with keys only by default.

You can’t perform that action at this time.