Skip to content

Instantly share code, notes, and snippets.

Kingsley Felix iamkingsleyf

Block or report user

Report or block iamkingsleyf

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
tomazzaman / hhvm.conf
Last active Dec 31, 2018
Monit configurations for commonly used services
View hhvm.conf
check process hhvm with pidfile /var/run/hhvm/pid
group hhvm
start program = "/usr/sbin/service hhvm start" with timeout 60 seconds
stop program = "/usr/sbin/service hhvm stop"
if failed unixsocket /var/run/hhvm/hhvm.sock then restart
if mem > 400.0 MB for 1 cycles then restart
if 5 restarts with 5 cycles then timeout
janikvonrotz / Install WordPress
Created Mar 3, 2014
Step by Step: Install WordPress Blog #PHP #MySQL #Nginx #phpMyAdmin #WordPress #Markdown #Ubuntu
View Install WordPress

Finishing this guide you'll get:

  • A running WordPress installation
  • Nginx proxy with PHP and Fast CGI
  • MySQL server accessible with phpMyAdmin

Specification of latest running installation:

  • Date: 03.03.2014
dlsniper /
Last active Jul 30, 2018
How to build nginx from sources on Ubuntu
export LANGUAGE="en_US.UTF-8" 
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
locale-gen en_US.UTF-8 
dpkg-reconfigure locales

apt-get install unzip libpcre3 libpcre3-dev libssl-dev libpcrecpp0 zlib1g-dev debhelper dh-systemd libgeoip-dev autotools-dev libgd2-noxpm-dev libluajit-5.1-dev libmhash-dev libpam0g-dev libperl-dev po-debconf libexpat-dev libxslt1-dev
stayallive /
Last active May 4, 2018
Install PHP 5.6.7 on Plesk 11.5 & 12 (CentOS 6)
# Make sure you are up to date
yum -y update && yum -y install wget
# Install EPEL repository
rpm -ivh
# Get us a clean working directory
mkdir /php
lukebranch / 4GB-4Core-VPS-my.cnf
Created Oct 22, 2014
/etc/my.cnf config for 4GB RAM 4 Core VPS - Wordpress
View 4GB-4Core-VPS-my.cnf
# Generated by Percona Configuration Wizard ( version REL5-20120208
# Configuration name server-1 generated for Luke at 2014-10-22 09:47:40
port = 3306
socket = /var/lib/mysql/mysql.sock
View www.conf
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
; Per pool prefix
; It only applies on the following directives:
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
kvandenhaute / default
Last active Aug 29, 2017
Example of a default server configuration for Nginx (sites-available/default).
View default
server {
listen 80 default; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
# Make site accessible from http://localhost/
server_name localhost;
server_name_in_redirect off;
charset utf-8;
bradyvercher / cache-post-thumbnails.php
Created Jan 9, 2014
WordPress: Cache post thumbnail attachments that appear in a WP_Query loop.
View cache-post-thumbnails.php
* Plugin Name: Cache Post Thumbnails
* Description: Prime the post thumbnails cache for individual loops.
* Version: 1.0.0
* Author: Brady Vercher
* Author URI:
* License: GPL-2.0+
* License URI:
DATE=$(date +%Y-%m-%d)
# Backup all databases to S3
for DB in $(mysql --user=$DB_USER --password=$DB_PASSWD -e 'show databases' -s --skip-column-names|grep -Ev "^(information_schema|performance_schema|mysql)$");
janikvonrotz / Enable Piwik geolocation support with GeoIP
Last active Feb 13, 2017
Ubuntu: Enable Piwik geolocation support with GeoIP PECL #Piwik #Markdown
View Enable Piwik geolocation support with GeoIP


By default Piwik uses the provider location to guess a visitor's country based on the language they use. This is not very accurate, so they recommend installing and using GeoIP.


  • Ubuntu server
  • libgeoip-dev
  • Nginx
  • Nginx minimal website
You can’t perform that action at this time.