This file contains 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
[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: |
This file contains 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
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 |
This file contains 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 | |
exec /usr/local/rvm/bin/rvm 1.9.2 exec god -D |
This file contains 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
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 |
This file contains 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
[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}, |
This file contains 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 -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 |
This file contains 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 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 |
This file contains 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 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 |
This file contains 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 | |
# | |
# 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" |
This file contains 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 -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[@]}" |