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 / Ubuntu Server 13.04 - EC2
Last active December 19, 2015 12:58
Ubuntu Server 13.04 - EC2
# Regular Server Stuff
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-software-properties python g++ make
sudo apt-get install node
sudo apt-get install npm
sudo apt-get install git
# Setup Varnish
curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
@andypotanin
andypotanin / Ubuntu Server 13.04 - Azure
Last active December 19, 2015 12:58
Ubuntu Server 13.04 - Azure
# Regular Server Stuff
sudo apt-get update
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get install python-software-properties python g++ make
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install git
# Setup Varnish
@andypotanin
andypotanin / ElasticSearch logging.yml
Created July 13, 2013 12:22
Format to make console messages more usage by elastic-client NPM module.
rootLogger: DEBUG, console
logger:
action: DEBUG
com: DEBUG
indices: DEBUG
discovery: DEBUG
mappings: DEBUG
indexing: DEBUG
store: DEBUG
# List Repositories
REPOSITORIES="abstract object-settings object-validation elastic-client"
# Define target path
DIRECTORY="/Cloud"
# Set Github User
USER="UsabilityDynamics"
for NAME in `echo $REPOSITORIES`
rootLogger: INFO, console, file, socketappender
logger:
# log action execution errors for easier debugging
action: DEBUG
# reduce the logging for aws, too much is logged under the default INFO
com.amazonaws: WARN
# gateway
#gateway: DEBUG
#index.gateway: DEBUG
@andypotanin
andypotanin / SVN Tags to Github Tags Migration
Last active December 20, 2015 06:19
Bash script for automating migrating SVN repository tags to a Git repository, maintaining tags.
# Bash script for automating migrating SVN repository tags to a Git repository, maintaining tags.
#
# Checkout SVN into a temporary directory, e.g:
# svn checkout http://plugins.svn.wordpress.org/wp-invoice/
# Setup the target Git repository
# git clone https://github.com/UsabilityDynamics/wp-invoice.git /products/wp-invoice
# git push -u origin master
# Directory with SVN version tags
TAGS=/products/wp-invoice-temp/tags/*
@andypotanin
andypotanin / gce-centos-6.3.setup-full.sh
Last active September 29, 2016 21:00
Google Compute - Setup CentOS Apache2/Varnish/Node.js Stack
# Set variables in .bash_profile for convenience:
# GOOGLE_COMPUTE_PROJECT_NAME - e.g. "my-project"
# GOOGLE_COMPUTE_USER - e.g. "bob"
# GOOGLE_COMPUTE_INSTANCE_NAME - e.g. "us-east-instance"
# GOOGLE_COMPUTE_HOSTNAME - e.g. "mywebsite.com"
#
# Services
# /etc/init.d/httpd
# /etc/init.d/mysql
# /etc/init.d/varnish
# Documentation: https://developers.google.com/compute/docs/gcutil/
# Move into home directory
cd ~
# Download gcutil-1.8.2.zip
curl https://google-compute-engine-tools.googlecode.com/files/gcutil-1.8.2.zip > gcutil-1.8.2.zip
# Unpack gcutil and remove original file
unzip gcutil-1.8.2.zip && unlink gcutil-1.8.2.zip
@andypotanin
andypotanin / webmin.repo
Created August 1, 2013 07:08
Webmin Yum repository for CentOs Webmin install.
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Noe Web Services /web-services
#
. /etc/rc.d/init.d/functions
USER="web-services"