Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".--------------------------."
echo "| git-subtree installation |"
echo "'--------------------------'"
#!/usr/bin/env
# apply-pull-request.sh <repo> <pr>
# Ex: apply-pull-request.sh fabpot/Sami 47
curl -s https://github.com/$1/pull/$2.patch | patch -p1
<?php
try {
throw new \RuntimeException('Tu peux pas test');
}
catch (\RuntimeException $e) {
// var_dump($e->getTrace());
$trace = $e->getTrace();
$found = false;
foreach ($trace as $i => $info) {
if (array_key_exists('class', $info)
#! /usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".-------------------."
echo "| Mate installation |"
echo "'-------------------'"
#! /usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".----------------------------."
echo "| Google Chrome installation |"
echo "'----------------------------'"
#!/usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
VERSION=1.9.0
echo ".------------------."
#!/usr/bin/env bash
if [ "$(git remote | grep source | wc -l)" != "0" ]; then
echo "$0: a remote called 'source' already exists" >&2
exit 1
fi
echo -n "Source Git repo URL: "
read url
#!/usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
VERSION=2.1.1
URL=ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-$VERSION.tar.gz
#!/usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".----------------------."
echo "| node.js installation |"
echo "'----------------------'"