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
MY_ENV=MY_VAL | |
MY_ENV_2=MY_VAL_2 | |
MY_ENV_3=MY_VAL_3 | |
MY_ENV_WITH_EQUAL=MY_VAL=BROKEN |
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
# Pycharm formatting, incorrect indentation after start of .format(... | |
url(r'^(?P<url_name>[a-z][a-z0-9_]+)/users/' | |
r'(?P<username>{username_regex_pattern})/' | |
r'favorite-companies/$'.format( | |
username_regex_pattern=username_regex_pattern), | |
views.FavoriteCompanyList.as_view(), | |
name='favorite-company-list'), | |
# If you put the start of the regex on the next line pycharm autoformatting works properly | |
url( |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
git config --global alias.st status | |
git config --global alias.mff "merge --no-ff" | |
git config --global alias.lg "log --oneline --decorate --all --graph" |
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
#!/bin/bash | |
# Author: Adam Jacquier-Parr | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' | |
# Check script is being run with source | |
if [ "$0" = "$BASH_SOURCE" ]; then | |
echo -e "${RED}You must use 'source test.sh' to run this script.${NC}" | |
exit 1 |
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
#!/bin/bash | |
############################################### | |
# To use: | |
# https://raw.github.com/gist/2776351/??? | |
# chmod 777 install_postgresql.sh | |
# ./install_postgresql.sh | |
############################################### | |
echo "*****************************************" | |
echo " Installing PostgreSQL" | |
echo "*****************************************" |
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
#!/bin/bash | |
############################################### | |
# To use: | |
# chmod +x install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
version=3.2.0 | |
echo "*****************************************" | |
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" |
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 python | |
""" | |
Basic SocketIO implementation that waits for orderbook changes from btcmarkets and enqueue's the ask/bid price data. | |
""" | |
import os | |
from decimal import Decimal | |
import re | |
import logging | |
import asyncio |
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 | |
# I've made changes to this script so it supports a --version argument | |
# which can specify a regular expression for the vcs_tag property on circle | |
# builds. | |
# | |
# sets $branch, $tag, $rest | |
parse_args() { | |
while [[ $# -gt 0 ]]; do |
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 | |
# THE SHELL ACTIVATOR | |
# Provide an "environment" name as the first argument to this script and it will open a python shell to the environment's web tier. | |
if [ -z $1 ]; then | |
echo "First argument must be the environment" | |
exit 1 | |
fi | |
ENV_FILE=$1 |
OlderNewer