Skip to content

Instantly share code, notes, and snippets.

View wayneeseguin's full-sized avatar
🤪

Wayne E Seguin wayneeseguin

🤪
View GitHub Profile
[root@sl6base ~]# ./array_test
4=4 :a b c d:
3=3 :a b c:
2=2 :b c: ${arr[0]}= ${arr[1]}=b ${arr[2]}=c
2=2 :b c: ${arr[0]}=b ${arr[1]}=c ${arr[2]}=
1=1 :c:
@wayneeseguin
wayneeseguin / gist:1161662
Created August 22, 2011 04:33
SM Framework Latest Release Installation
version=$(curl -ks https://sm.beginrescueend.com/releases/latest-version.txt) &&
curl -k -L -O https://sm.beginrescueend.com/releases/sm-${version}.tar.bz2 &&
tar jxf sm-${version}.tar.bz2 &&
cd sm-${version} &&
./install
#!/bin/bash
exec /usr/local/rvm/bin/rvm 1.9.2 exec god -D
test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=/sm/src/otp_src_R13B04 make generate depend)
make[1]: Entering directory `/sm/src/otp_src_R13B04/erts/emulator'
make -f x86_64-unknown-linux-gnu/Makefile generate
make[2]: Entering directory `/sm/src/otp_src_R13B04/erts/emulator'
/bin/mkdir -p x86_64-unknown-linux-gnu/opt/plain
/bin/mkdir -p obj/x86_64-unknown-linux-gnu/opt/plain
/bin/mkdir -p pcre/obj/x86_64-unknown-linux-gnu/opt
/bin/mkdir -p zlib/obj/x86_64-unknown-linux-gnu/opt
LANG=C /usr/bin/perl utils/beam_makeops -outdir x86_64-unknown-linux-gnu/opt/plain \
-emulator /sm/src/otp_src_R13B04/lib/compiler/src/genop.tab beam/ops.tab hipe/hipe_ops.tab
[root@sl6base riak-0.14.2]# make rel
fatal: Not a git repository (or any of the parent directories): .git
./rebar get-deps
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Uncaught error in rebar_core: {'EXIT',
{undef,
[{crypto,start,[]},
{rebar,run_aux,1},
@wayneeseguin
wayneeseguin / bdsm-install-head.sh
Created August 8, 2011 01:11
bash script to install bdsm
#!/bin/bash -e
if ! command -v git > /dev/null
then
echo "git is required in order to install the latest development BDSM version."
echo "Please install git ( http://git-scm.com/ ) and then try again."
fi
if (( UID == 0 ))
then
#!/usr/bin/env bdsm
myarray=(a b c)
if (( "${#myarray[@]}" > 0 ))
then
echo "Not so much fun figuring out how to check if an array is not empty... :("
fi
modules ext/array
@wayneeseguin
wayneeseguin / bdsm-test.sh
Created August 3, 2011 20:54 — forked from adrianrf/bdsm-test.sh
bdsm-test.sh script as I try out BDSM
#!/usr/bin/env bdsm
modules bdsm/filesystem # We're going to use the system module.
if file_is_nonempty "$HOME/.bashrc" # Provided by the filesystem module
then
log "$HOME/.bashrc is nonempty! " # log() is provided by logging module
else
log "$HOME/.bashrc is empty! "
fi
@wayneeseguin
wayneeseguin / gist:1122780
Created August 3, 2011 14:34
pickjdk shell function refactored from Nick Sieger's script
#!/bin/bash
#
# Quicky Waynification of Nick's pickjdk
#
#
# pickjdk: for switching between Java versions:
# From Nick Sieger: http://pastie.org/170326
# "I just symlink soylatte to:
# /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0-soylatte/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0-soylatte"
@wayneeseguin
wayneeseguin / rvm-empty-gems.sh
Created August 2, 2011 13:28 — forked from DAddYE/rvm-empty-gems.sh
Fast way to empty global gemset
#!/bin/bash -e
#
# This script will empty all RVM default gemsets in parallel.
#
rubies=($(rvm list strings))
echo "Emptying default gemsets for rubies: ${rubies[*]}";
for ruby in "${rubies[@]}"