gem install ruby-debug
gem sources -a https://gems.gemfury.com/8n1rdTK8pezvcsyVmmgJ/ # creates ~/.gemrc
gem install ruby-debug19 -- --with-ruby-include="$rvm_path/src/`rvm tools strings`" # -- --with... for RVM only
#!/bin/sh | |
install_home=/usr/local | |
if ! which cc | |
then | |
echo install command line tools for xcode (or a compiler), try again: | |
echo | |
echo ' https://developer.apple.com/downloads/' | |
echo |
#!/bin/sh | |
set -e | |
PKG_NAME="nginx" | |
VERSION="1.1.17" | |
RELEASE="1" | |
[email protected] |
sudo dtruss chroot . 2>&1 | grep '/' | sed 's%[^/]*\(/.*\)\\0.*%\1%g' | grep -v AppleI | grep -v dev |
# zfs create na nd nx ns blah | |
zfs_create() { | |
options="" | |
while [ $# -gt 0 ] | |
do | |
case $1 | |
na) option="atime=off" ;; | |
a) option="atime=on" ;; | |
nm) option="mountpoint=none" ;; |
#!/bin/sh | |
dumpkey() { | |
local param=${1} | |
local key | |
local result | |
local param_prefix | |
result=$(xenstore-list ${param}) |
#!/usr/bin/env bash | |
set -e | |
# ---- may change frequently - start | |
version="0.6.0-rc8" | |
spl_tar_sha1=a3bba691e5b3b680f4cbeac70f7ea29367e6f337 | |
zfs_tar_sha1=90597083069e17cc066fa435974bcdcabebad44d |
#!/usr/bin/env bash | |
# | |
# usage: /etc/NetworkManager/dispatcher.d/11-promisc eth0|eth.. up|down [verbose] | |
# | |
SAMPLE=" | |
# primary public interface | |
# /etc/sysconfig/network-scripts/ifcfg-eth0 | |
BOOTPROTO=dhcp | |
DEFROUTE=yes |
#!/bin/sh | |
if [ ! -d /Library/Frameworks/HaskellPlatform.framework ] | |
then | |
if which -s ghc | |
then | |
echo "A different Haskell was found." >&2 | |
else | |
echo "Haskell Platform for OSX is not installed." >&2 | |
fi |
#!/bin/sh | |
set -e | |
JAVA_VER=7 | |
rm -f /tmp/oab-index.html /tmp/oab-download.html >/dev/null 2>&1 || true | |
trap "rm -f /tmp/oab-index.html /tmp/oab-download.html" EXIT ERR QUIT INT TERM | |
# Try and dynamic find the JDK downloads | |
echo " [x] Getting Java SE download page " |