Skip to content

Instantly share code, notes, and snippets.

@dillera
dillera / graphite-centos6-install.txt
Created January 18, 2012 17:59
Install Graphite 0.9.9 and Statsd on Centos 6
# FOR CENTOS 6
# Andrew Diller Jan 2012
# Get EPEL Repo installed
rpm --httpproxy proxy --httpport 3128 --import https://fedoraproject.org/static/0608B895.txt
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
vi /etc/yum.repos.d/epel.repo
@dillera
dillera / bootstrap-ruby.sh
Created February 10, 2012 20:44
Install Ruby with rbenv/ruby-build on Centos6 with openssl
#!/bin/bash
set -e # exit on error
### README
# * installs your desired ruby versions using rbenv
# ** including openssl (needed by bundler)
# ** including sqlite (probably needed for rails apps)
#
# Before you start:
# * put ssh-keys in place
@dillera
dillera / mkchroot.sh
Created February 17, 2012 16:40
mkchroot (from Luis Iafigliola) For Centos 32/64
#!/bin/sh
#####################################################################
# Mkchroot update for 32/64-bit RHEL Systems support by Luis Iafigliola.
# Dated 29th June 2010.
#####################################################################
#####################################################################
##
## mkchroot.sh - set up a chroot jail.
##
@dillera
dillera / mkRemoteUser.sh
Created February 20, 2012 22:17
Create a chrooted user using mkchroot.sh
#/bin/bash
# andrew_diller
# 2012
# Note: this uses the 'rsshusers' group that is used by the rssh binary.
# Prerequisite: install rssh package!
# $ sudo yum -y install rssh
# Note: assumes you have downloaded and put the mkchoot.sh script in /root/mkchroot.sh
USER=$1
BASEDIR=/root
@dillera
dillera / install_rbenv_osx.sh
Last active October 11, 2016 09:21
Install rbenv on OSX
# THE README:
# Do these by hand first!
#
# install compiler
## THIS WILL NOT WORK FOR YOU- Change
# wget https://nas.chalybs.net/software/Software/_MacOS/_Apple/command_line_tools_for_xcode_.dmg
# Install brew
# /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
@dillera
dillera / boss_me.sh
Last active October 2, 2015 15:28 — forked from erikh/hack.sh
OSX like a boss
#!/usr/bin/env sh
# Note- most of this is lifed from http://mths.be/osx - dotfiles
# 2013
###########################################################################
# Ask for the administrator password upfront
sudo -v
@dillera
dillera / bash
Created May 19, 2012 17:30 — forked from haf/bash
Installing graphite Ubuntu 11.10
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@dillera
dillera / rbenv-lucid
Last active October 5, 2015 05:58
rbenv for ubuntu lucid
#!/bin/bash
set -e # exit on error
### README
# * installs your desired ruby versions using rbenv
# ** including openssl (needed by bundler)
# ** including sqlite (probably needed for rails apps)
#
# Before you start:
# * put ssh-keys in place
@dillera
dillera / rbenv2ndInstall.sh
Last active October 11, 2015 09:58
rbenv secondary install -- for a non-priv user
#!/bin/bash
set -e # exit on error
# Ruby Versions to install
RBVER187='1.8.7-p357'
RBVER193='1.9.3-p484'
RBVER_GLOBAL=${RBVER193}
PROFILE=~/.bash_profile
### /CONFIG
@dillera
dillera / fio_bench.sh
Created February 5, 2013 19:13
Benchmark FIO card
#!/bin/bash
######################################
#
# FusionIO Benchmarking
# 2013
if [ "$#" == "0" ]; then
echo "No arguments provided, please run like: fio_bench.sh /dev/[fiocontroller] /dev/[fiodevice]"
exit 1
fi