Skip to content

Instantly share code, notes, and snippets.

View nathanbrauer's full-sized avatar

Nathan J. Brauer nathanbrauer

View GitHub Profile
@nathanbrauer
nathanbrauer / gitpullalllocal.sh
Last active May 26, 2017 16:01 — forked from Tanapruk/gitpullalllocal.sh
Looping through all local git branch and git pull them each
#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}
@nathanbrauer
nathanbrauer / sync-projects
Last active February 4, 2020 21:14 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/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
<?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
<?php
$books = array(
1 => 'Genesis',
2 => 'Exodus',
3 => 'Leviticus',
4 => 'Numbers',
5 => 'Deuteronomy',
6 => 'Joshua',
7 => 'Judges',
8 => 'Ruth',