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 | |
| # | |
| # 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 | |
| # | |
| # 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
    
  
  
    
  | # 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
    
  
  
    
  | " 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
    
  
  
    
  | 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
    
  
  
    
  | #!/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
    
  
  
    
  | #!/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 | |
| # | |
| # An example hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| array_contains() { | 
  
    
      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
    
  
  
    
  | import urllib2 | |
| from bs4 import BeautifulSoup as bs | |
| def scrape_site(url): | |
| result = [] | |
| soup = bs(urllib2.urlopen(url).read()) | |
| for img in soup.find_all('img'): | |
| if img.has_attr('alt'): | |
| src = img.get('src') |