Skip to content

Instantly share code, notes, and snippets.

View artistio's full-sized avatar

Benny Chandra artistio

View GitHub Profile
@artistio
artistio / wp-ms
Created July 14, 2016 13:51
NGINX site specification to run Wordpress Multisite with Domain Mapping. This site use fastcgi cache to speed up PHP execution Support HTTPS is also available. To use, put this file in /etc/nginx/site-available, and symlink to /etc/nginx/site-enabled
fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=WP:32m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
add_header X-Cache $upstream_cache_status;
server {
listen [::]:80 ipv6only=off;
listen [::]:443 ipv6only=off ssl;
# Change the line below according to domain served by this Wordpress. Include all domain
server_name example.com *.example.com example.org *.example.org;
@artistio
artistio / nginx.conf
Created July 14, 2016 13:46
The nginx.conf file used in my NGINX for Wordpress Multisite with Domain Mapping
user www-data;
worker_processes 1;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@artistio
artistio / Vagrant.chef.rb
Last active September 29, 2015 03:06 — forked from hgilani/Vagrant.chef.rb
Vagrant VM running with latest version of chef and ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty32"
config.omnibus.chef_version = :latest
@artistio
artistio / blinky.ino
Last active September 5, 2015 11:03 — forked from ericevenchick/blinky.ino
Blinking LED sketch for Arduino
/*
* copyleft 2005 DojoDave <http://www.0j0.org>
* http://arduino.berlios.de
*
* based on an orginal by H. Barragan for the Wiring i/o board
*/
int ledPin = 13; // LED connected to digital pin 13
void setup()