Skip to content

Instantly share code, notes, and snippets.

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
@dillera
dillera / gist:590b9f62c0b8a9d4d595
Created August 13, 2015 23:44
notes for fedlet on Acer Switch 10
# Power seems to be working
[89065.240448] PM: Preparing system for sleep (freeze)
[89065.240644] Freezing user space processes ... (elapsed 0.150 seconds) done.
[89065.391305] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[89065.392692] PM: Suspending system (freeze)
[89065.392699] Suspending console(s) (use no_console_suspend to debug)
[89067.525590] PM: suspend of devices complete after 2129.860 msecs
[89067.539839] PM: late suspend of devices complete after 14.220 msecs
[89067.551647] PM: noirq suspend of devices complete after 11.776 msecs
@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 / 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 / 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