Skip to content

Instantly share code, notes, and snippets.

View Aricg's full-sized avatar

Aric Gardner Aricg

View GitHub Profile
@Aricg
Aricg / pre-gliffy
Created November 4, 2012 21:05 — forked from msterle/pre-gliffy
Some network diagram somewhere
(INTERNET)
|
HAPROXY\ | /HAPROXY-STANDBY
NFS- DRBD1 <------VIP DRBD2 -NFS-STANDBY
MYSQL/ / /|\ \ \MYSQL-STANDBY
PUPPET/ / | \ \STORAGE
/ | \
WEB1 WEB2 WEB3 WEB4 (apache's mpm-itk/nginx php5-fpm)
@Aricg
Aricg / node_debian_init.sh
Last active December 14, 2015 04:59 — forked from peterhost/node_debian_init.sh
Init file for hastebin server (assuming installed to /home/hastebin/haste-server )
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin # modify if you need
DAEMON_ARGS="/home/hastebin/haste-server/server.js" # path to your node.js server/app
DESC="node.js pastebin server" # whatever fancy description you like
NODEUSER=hastebin:hastebin # USER who OWNS the daemon process (no matter whoever runs the init script)
LOCAL_VAR_RUN=/var/run # in case the init script is run by non-root user, you need to
NAME=node # name of the node.js executable
DAEMON=/usr/local/bin/$NAME # this SHOULD POINT TO where your node executable is
@Aricg
Aricg / sidekiq
Created April 18, 2013 14:37 — forked from dyerc/sidekiq
#!/bin/bash
# sidekiq Init script for Sidekiq
# chkconfig: 345 100 75
#
# Description: Starts and Stops Sidekiq message processor for Stratus application.
#
# User-specified exit parameters used in this script:
#
# Exit Code 5 - Incorrect User ID
# Exit Code 6 - Directory not found
@Aricg
Aricg / vim.rb
Last active December 27, 2015 19:09 — forked from mgrouchy/vim.rb
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => 'c0203d88d1d7'
version '7.3.515'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end