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 | |
## Install ####################################### | |
# pip install Pygments pygments-markdown-lexer | |
# cp catp ~/.catp | |
# echo "source .catp" >> .bash_profile | |
## Usage ######################################### | |
# > catp filename.foo | |
################################################## |
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
# Build it: | |
# docker build -t mezzanine-dev . | |
# Run it: | |
# docker run -it --rm -p '8000:8000' mezzanine-dev | |
# then go to http://localhost:8000/admin/ | |
# username: admin | |
# password: default | |
FROM python |
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 | |
## ======================================================================= | |
## ~/.pypirc | |
## ----------------------------------------------------------------------- | |
# [distutils] # this tells distutils what package indexes you can push to | |
# index-servers = | |
# pypi | |
# pypitest |
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
import os | |
from functools import wraps | |
from inspect import getargspec | |
import boto3 | |
AWS_REGION = os.getenv('AWS_REGION', 'us-east-1') | |
def get_client(name, client_type='client', region=None, *args, **kwargs): |
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 | |
VERSION=$(<VERSION) | |
echo "Current VERSION: ${VERSION}" | |
V_LIST=(`echo $VERSION | tr '.' ' '`) | |
V_MAJOR=${V_LIST[0]} | |
V_MINOR=${V_LIST[1]} | |
V_PATCH=${V_LIST[2]} |
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 | |
# this file should be in your path before | |
# instantclient/sqlplus is picked up. | |
# make sure to chmod +x | |
source /path/to/your/env/settings/.bash_profile | |
/path/to/instantclient/sqlplus $@ |
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 | |
# | |
# Source this from .bash_profile | |
# | |
# TODO py-ify and ansible-fy this | |
# append source .mypystuff to .bash_profile | |
# | |
# Usage: mkpy projectname | |
function get_st3_prj_file() { |
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 | |
# | |
# installs node into a python virtualenv | |
# dependencies: pip, virtualenv, virtualenvwrapper | |
# | |
# install dependencies: | |
# sudo easy_install pip | |
# sudo pip install virtualenv virtualenvwrapper | |
# | |
# Usage: mknodeenv myproject |