Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get --yes install python-software-properties
sudo apt-add-repository --yes ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get --yes install nodejs npm
# Install git to get statsd
sudo apt-get --yes install git
@vertis
vertis / rbenv-install-system-wide.sh
Created August 9, 2012 03:29 — forked from v1nc3ntlaw/rbenv-install-system-wide.sh
rbenv install ruby 1.9.3-p194 on Debian 6 Squeeze
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl libssl-dev \
libreadline5 libreadline5-dev \
zlib1g zlib1g-dev \
libmysqlclient-dev \
libcurl4-openssl-dev \
libxslt-dev libxml2-dev
@vertis
vertis / rbenv-install-system-wide.sh
Created July 25, 2012 06:03 — forked from jpfuentes2/rbenv-install-system-wide.sh
CentOS: rbenv install and system wide install
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core
@vertis
vertis / rbenv-install-system-wide.sh
Created May 4, 2012 10:19
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@vertis
vertis / samba.3.6.3.osx-getgrouplist.patch
Created February 23, 2012 13:30 — forked from lasombra/samba.3.6.1.osx-getgrouplist.patch
_SC_NGROUPS_MAX cannot be used with getgrouplist on OS X
--- a/source3/lib/system.c 2012-02-22 22:46:14.000000000 -0200
+++ b/source3/lib/system.c 2012-02-22 22:47:51.000000000 -0200
@@ -1161,7 +1161,14 @@
int groups_max(void)
{
-#if defined(SYSCONF_SC_NGROUPS_MAX)
+#if defined(DARWINOS)
+ /* On OS X, sysconf(_SC_NGROUPS_MAX) returns 16
+ * due to OS X's group nesting and getgrouplist