Skip to content

Instantly share code, notes, and snippets.

View devops-ar's full-sized avatar

Osvaldo devops-ar

View GitHub Profile
# CentOS 5.8
yum -y install readline-devel sqlite-devel zlib-devel openssl-devel httpd-devel mysql-devel
# yum install gcc
cd /tmp
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -xvzf Python-2.7.3.tgz
cd Python-2.7.3
# with shared for mod_swgi to work
./configure --with-threads --enable-shared
make altinstall
@devops-ar
devops-ar / irccat
Created November 15, 2012 20:05
init scripts
#!/bin/bash
#
# irccatd Startup script for irccat
#
# chkconfig: - 85 15
# description: Startup script for the irccat service
# processname: irccatd
#
RDECK_BASE="/home/chef/irccat"
@devops-ar
devops-ar / post-receive
Created November 15, 2012 00:01
git hook for chef deployments
#!/bin/sh
#TODO
# add error checking to knife operations
IRC_URL="http://irc.example.com/irc.php"
RUNDECK_URL="https://rundeck.example.com/rundeck/"
template_msg="modified template:"
node_msg="modified node:"
envr_msg="modified environment:"
@devops-ar
devops-ar / symbolicatecrash.patch
Created August 8, 2012 22:48
fix for symbolicate script failing in xcode 4 when processing crash logs
*** /usr/bin/symbolicatecrash.orig Wed Aug 8 17:24:18 2012
--- /usr/bin/symbolicatecrash Wed Aug 8 17:19:07 2012
***************
*** 320,326 ****
print STDERR "Given UUID $uuid for '$path' is really UUID $test\n" if $opt{v};
}
} else {
! die "Can't understand the output from otool ($TEST_uuid -> '$otool -arch $arch -l $path')";
}