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
#if there is a passing argument | |
if [ -z $1 ] | |
then | |
GIT_RELATIVE_DIRECTORY="$(pwd)" | |
else | |
GIT_RELATIVE_DIRECTORY=$1 | |
fi | |
#go to that relative path if exists | |
cd ${GIT_RELATIVE_DIRECTORY} |
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 bash | |
# Documentation | |
# https://docs.gitlab.com/ce/api/projects.html#list-projects | |
if [[ `whoami` == "root" ]]; then | |
echo "DO NOT run this program as root! Quitting." | |
exit 1 | |
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
<?php | |
if (!function_exists('http_response_code')) { | |
function http_response_code($code = null) | |
{ | |
static $defaultCode = 200; | |
if (null != $code) { | |
switch ($code) { | |
case 100: $text = 'Continue'; break; // RFC2616 |
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
<?php | |
$books = array( | |
1 => 'Genesis', | |
2 => 'Exodus', | |
3 => 'Leviticus', | |
4 => 'Numbers', | |
5 => 'Deuteronomy', | |
6 => 'Joshua', | |
7 => 'Judges', | |
8 => 'Ruth', |