Skip to content

Instantly share code, notes, and snippets.

#!/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=1.9.0
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
echo ".-------------------."
echo "| Mate installation |"
echo "'-------------------'"
<?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
# 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
#!/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 "'--------------------------'"
root = true
# Due to a bug in the EditorConfig for SublimeText, we set tab indentation for
# all files and we set exceptions for all files with an extension
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
#!/usr/bin/env bash
# ==============================================================================
# svn-to-git.sh - Migrate a SVN repository to Git
# ==============================================================================
echo "==============================="
echo "Migrate a SVN repository to Git"
echo "==============================="
echo