This file contains hidden or 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 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 |
This file contains hidden or 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 bash | |
if [ "`whoami`" != "root" ]; then | |
echo "You must execute this script as root" >&2 | |
exit 1 | |
fi | |
VERSION=1.9.0 | |
echo ".------------------." |
This file contains hidden or 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
npm install [email protected] |
This file contains hidden or 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 bash | |
if [ "`whoami`" != "root" ]; then | |
echo "You must execute this script as root" >&2 | |
exit 1 | |
fi | |
echo ".----------------------------." | |
echo "| Google Chrome installation |" | |
echo "'----------------------------'" |
This file contains hidden or 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 bash | |
if [ "`whoami`" != "root" ]; then | |
echo "You must execute this script as root" >&2 | |
exit 1 | |
fi | |
echo ".-------------------." | |
echo "| Mate installation |" | |
echo "'-------------------'" |
This file contains hidden or 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
<?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) |
This file contains hidden or 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 | |
# 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 |
This file contains hidden or 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 bash | |
if [ "`whoami`" != "root" ]; then | |
echo "You must execute this script as root" >&2 | |
exit 1 | |
fi | |
echo ".--------------------------." | |
echo "| git-subtree installation |" | |
echo "'--------------------------'" |
This file contains hidden or 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 = 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 |
This file contains hidden or 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 bash | |
# ============================================================================== | |
# svn-to-git.sh - Migrate a SVN repository to Git | |
# ============================================================================== | |
echo "===============================" | |
echo "Migrate a SVN repository to Git" | |
echo "===============================" | |
echo |