Skip to content

Instantly share code, notes, and snippets.

ak5

Block or report user

Report or block ak5

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ak5
ak5 / 00_README.md
Created Dec 25, 2016 — forked from md5/00_README.md
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx
View 00_README.md

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

Usage

Build a copy of this image:

git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
@ak5
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
#!/bin/bash
# Idea and interface taken from https://github.com/macmade/host-manager
path="/etc/hosts"
addusage="Usage: `basename $0` -add host address"
remusage="Usage: `basename $0` -remove host"
case "$1" in
-add)
if [ $# -eq 3 ]; then
if [[ -n $(grep "^$3.*[^A-Za-z0-9\.]$2$" ${path}) ]]; then
@ak5
ak5 / woocommerce-order-stuff.php
Created Oct 7, 2016
WooCommerce Order Creation + Updating
View woocommerce-order-stuff.php
<?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]
Type=Application
Version=1.0
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
Terminal=false
Categories=Chat
@ak5
ak5 / rtl8192ce.conf
Created Sep 20, 2014
/etc/modprobe.d/rtl8192ce.conf
View rtl8192ce.conf
# Disable powersaving
options rtl8192ce fwlps=0 ips=0
# Use software control instead
#options rtl8192ce swlps=1
@ak5
ak5 / Arch_DO.md
Last active Aug 29, 2015
Latest Archlinux Kernel on DigitalOcean
View Arch_DO.md

Archlinux on DigitOcean

Installation

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.