Skip to content

Instantly share code, notes, and snippets.

View brock's full-sized avatar
😎

Brock Angelo brock

😎
View GitHub Profile
@brock
brock / backup_all_dbs.sh
Created September 20, 2012 01:03
Backup All DB's and transfer to S3 with s3cmd
#!/bin/bash
BACKUP_DIR="~/db_backups"
DBUSER=""
DBPASSWORD=""
BUCKET=""
FROM='"Backups" <backups@localhost>'
TO='"Admin" <admin@localhost>'
SUBJECT='Backup Log'
@brock
brock / smt-mod.zsh-theme
Last active May 9, 2019 15:26
ZSH Theme
# -----------------------------------------------------------------------------
# FILE: smt-mod.zsh-theme
# DESCRIPTION: oh-my-zsh theme file, based on smt by Stephen Tudor
# AUTHOR: Brock Angelo
# VERSION: 0.1
# SCREENSHOT:
# -----------------------------------------------------------------------------
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
@brock
brock / gh.sh
Created February 26, 2012 16:59
Open Git Project in Github
# GH
# by Brock Angelo
# for Mac OSX & Unix
# https://gist.github.com/1917716
# Description: when you are on the command line and want to open your project in Github, just type "gh". Latest version opens the current branch on github as well.
#
# SETUP:
# 1. Copy this snippet to ~/bin/gh
# 2. Make it executable by running: chmod +x ~/bin/gh
# 3. From the command line, inside your project, type gh and the browser window will open.