Skip to content

Instantly share code, notes, and snippets.

View andypotanin's full-sized avatar
🇺🇲
Focusing

Andy Potanin andypotanin

🇺🇲
Focusing
View GitHub Profile
{
"additional_room” {
“default”: “LFD_ROOMADDITIONAL_29”
“type”: “string”,
“multiple”: true,
“delimiter”: “,”
“values”: {
“Kitchen”: “Kitchen/Family Combo”,
“Dining Room”: “Formal Dining Room"
}
@andypotanin
andypotanin / config.json
Created February 3, 2014 14:26
Composer config file.
{
"config": {
"preferred-install": "source"
},
"repositories": [
{
"type": "composer",
"url": "http://repository.usabilitydynamics.com"
}
]
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
#
#
# source http://www.idevelopment.info/data/Unix/Linux/LINUX_AddGNOMEToCentOSMinimalInstall.shtml
yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
yum -y groupinstall "Graphical Administration Tools"
yum -y groupinstall "Internet Browser"
yum -y groupinstall "General Purpose Desktop"
yum -y groupinstall "Office Suite and Productivity"
yum -y groupinstall "Graphics Creation Tools"
#!/bin/sh
#
# My Run Node.js services.
#
# chkconfig: - 90 10
# description: My Service Application.
# processname: my-app
# config: /etc/my-app/my-app.yaml
# pidfile: /var/run/my-app.pid
#
#
#
# http://www.clusterdb.com/mysql-cluster/deploying-mysql-cluster-over-multiple-hosts
# http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html
# http://www.houseoflinux.com/mysql/how-to-configure-a-mysql-cluster-on-centos-redhat
yum -y groupinstall "High Availability" "Resilient Storage"
yum -y groupinstall "High Availability Management"
yum -y install iscsi-initiator-utils
yum -y install vsftpd
@andypotanin
andypotanin / gist:9719647
Last active August 29, 2015 13:57
Installing libvmod-curl on OSX for Varnish 3.0.5.
# /usr/local/lib/varnish/vmods
sudo port install autoconf
sudo port install automake
sudo port install libtool
sudo port install pkg-config
sudo port install pkgconfig
sudo port install pcre
wget http://curl.haxx.se/download/curl-7.35.0.zip && unzip curl-7.35.0.zip
[
{auth_backends,[rabbit_auth_backend_internal]},
{auth_mechanisms,['PLAIN','AMQPLAIN']},
{backing_queue_module,rabbit_variable_queue},
{cluster_nodes,[]},
{collect_statistics,fine},
{collect_statistics_interval,5000},
{default_permissions,[<<".*">>,<<".*">>,<<".*">>]},
{default_user,<<"guest">>},
{default_user_tags,[administrator]},
var express = require('express');
var proxy = require('http-proxy').createProxyServer;
var request = require( 'request' );
var app = express();
var mount = express();
mount.configure( function() {
// proxy using good ol' request module
app.use( function( req, res ) {
worker_processes 1;
daemon off;
events {
worker_connections 1024;
}
# curl localhost:8000/api/ariya.github.io/js/random/index.html
# curl localhost:8000/api/stackoverflow.com
http {