This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# execute with: | |
# curl https://gist.github.com/alanstevens/1909971/raw/install_system_rvm.sh|bash | |
# | |
echo "You will be prompted for your password by sudo." | |
# clear any previous sudo permission |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install nginx & passenger build dependencies | |
# | |
apt-get install libcurl4-openssl-dev --yes | |
apt-get install libpcre3 libpcre3-dev --yes | |
# | |
# source rvm in the current shell session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# execute this script as root with: | |
# curl https://raw.github.com/gist/1877257/lock_down_ubuntu.sh | bash -s MyAwesomeHostName | |
# | |
if [[ ! "root" = "$(whoami)" ]] ; then | |
echo -e "****\nThis script must be run as root.\n****" && exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install fuse4x | |
brew install ntfs-3g | |
sudo kextunload -b org.fuse4x.kext.fuse4x | |
sudo cp -rfX /usr/local/Cellar/fuse4x-kext/0.9.0/Library/Extensions/fuse4x.kext /Library/Extensions | |
sudo chmod +s /Library/Extensions/fuse4x.kext/Support/load_fuse4x | |
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig | |
sudo touch /sbin/mount_ntfs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
source ~/.bash_profile | |
rvm autolibs enable | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
rvm use 1.9.3@global | |
echo "install: --no-rdoc --no-ri" >> ~/.gemrc | |
echo "update: --no-rdoc --no-ri" >> ~/.gemrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
readonly rubyversion="1.9.3" | |
# Source RVM as a function into local environment. | |
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then | |
# First try to load from a user install | |
source "$HOME/.rvm/scripts/rvm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# execute this script with: | |
# curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s <username> <public_key_url> | |
# curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s 'alan' 'https://dl.dropbox.com/s/qfo16yktbn23q9j/id_rsa.pub?dl=1' | |
# | |
user_name=$1 | |
public_key=$2 |
NewerOlder