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
| #!/bin/bash | |
| USERNAME="<HTTP-USERNAME>" | |
| PASSWORD="<HTTP-PASSWORD>" | |
| BASE_URL="<GERRIT-URL>" | |
| REVIEWER="<DEFAULT-REVIEWER-EMAIL>" | |
| CURL=$(which curl) | |
| if [ -z "$CURL" ] |
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
| #!/bin/bash | |
| VIRTUALENVS={PATH TO VIRTUALENVS} | |
| PROJECT_NAME=$(basename $(dirname $0)) | |
| if [[ $PROJECT_NAME == "." ]]; then | |
| PROJECT_NAME=$(basename $(pwd)) | |
| fi | |
| source $VIRTUALENVS/$PROJECT_NAME/bin/activate |
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
| syntax on | |
| syntax enable | |
| set background=dark | |
| set cryptmethod=blowfish | |
| set nocompatible | |
| set relativenumber | |
| set number | |
| set t_Co=256 |
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
| " Vim color file | |
| " Converted from Textmate theme Monokai using Coloration v0.3.2 (http://github.com/sickill/coloration) | |
| set background=dark | |
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif |
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
| # SOURCE: http://www.ludeke.net/2013/12/run-docker-commands-without-sudo.html | |
| # Add the docker group if it doesn't already exist. | |
| sudo groupadd docker | |
| # Add the connected user "${USERNAME}" to the docker group. | |
| # Change the user name to match your preferred user. | |
| # You may have to logout and log back in again for | |
| # this to take effect. | |
| sudo gpasswd -a ${USERNAME} docker |
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
| #!/bin/bash | |
| # | |
| # Activates a given virtualenv. If no name is specified, the current directory | |
| # is assumed to be the name. | |
| # | |
| STORE="/home/$USER/.virtualenv/env" | |
| VE_SCRIPT="bin/activate" |
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
| #!/bin/bash | |
| # | |
| # usage: mkvirtualenv [any virtualenv params] | |
| # | |
| # Creates a virtualenv in the directory defined by STORE using the current | |
| # directory's name as the virtualenv name. | |
| # | |
| STORE="/home/$USER/.virtualenv/env" |
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
| #!/bin/bash | |
| git filter-branch -f --commit-filter ' | |
| if [ "$GIT_AUTHOR_EMAIL" = "user@host" ]; | |
| then | |
| GIT_AUTHOR_NAME="spudfkc" | |
| GIT_COMMITTER_NAME="spudfkc" | |
| GIT_COMMITTER_EMAIL="[email protected]" | |
| GIT_AUTHOR_EMAIL="[email protected]" | |
| git commit-tree "$@" | |
| else |
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
| #!/bin/bash | |
| # | |
| # author: ncc | |
| # | |
| readonly PROGNAME=$(basename $0) | |
| readonly PROGDIR=$(readlink -m $(dirname $0)) | |
| readonly ARGS="$@" | |
| VERSION=dev |
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 python | |
| # pre-req: pip install gitpython | |
| import os | |
| from git import * | |
| from multiprocessing import Pool | |
| def git_remote_update(repodir): | |
| print ''.join(['Creating Repo at ', repodir]) |