Skip to content

Instantly share code, notes, and snippets.

View andypotanin's full-sized avatar
🇺🇲
Focusing

Andy Potanin andypotanin

🇺🇲
Focusing
View GitHub Profile
@andypotanin
andypotanin / vcs-update.sh
Created October 10, 2013 23:11
Bash script to update all Git repositories in curent directory.
#! /usr/bin/env bash
#
# To install globally:
# $ chmod +x vcs-update.sh
# $ mv vcs-update.sh /usr/local/bin/vcs-update
#
# Run "vcs-update" in terminal to update all directories.
#
DIRECTORIES=$PWD/*
@andypotanin
andypotanin / gce-centos-6.3-install-light.sh
Last active September 29, 2016 21:00
Setup CentOs 6.3 on Google Compute Engine with Node.js, Git, SVN and other commons.
# Set variables in .bash_profile for convenience:
# GOOGLE_COMPUTE_PROJECT_NAME - e.g. "my-project"
#
# Run locally:
# sudo ssh-add ~/.ssh/google_compute_engine
# gcutil ssh $GOOGLE_COMPUTE_INSTANCE_NAME
# Cache project name
gcutil getproject --project=$GOOGLE_COMPUTE_PROJECT_NAME --cache_flag_values
#! /usr/bin/env bash
#
# To install globally:
# $ chmod +x vcs-update.sh
# $ ln /usr/local/bin/push push.sh
#
# Run "vcs-update" in terminal to update all directories.
#
DIRECTORIES=$PWD/*
#! /usr/bin/env bash
#
# To install globally:
# $ chmod +x vcs-update.sh
# $ mv vcs-update.sh /usr/local/bin/vcs-update
#
# Run "vcs-update" in terminal to update all directories.
#
DIRECTORIES=$PWD/*
@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