# /path/to/repo/bin/script
BIN_PATH="$(dirname ${BASH_SOURCE})" # gets 'bin' directory path script is in
DIR_PATH="$(dirname $BIN_PATH)" # gets the main 'repo' directory path
for f in *.txt ; do echo "${f/old/new}"; done
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
# COLOR OUTPUT (3/4 bit version) | |
NC="\033[0m" # Color reset | |
# Normal (0;) | |
BLACK="\033[0;30m" | |
RED="\033[0;31m" | |
GREEN="\033[0;32m" | |
YELLOW="\033[0;33m" | |
BLUE="\033[0;34m" |
tap "brewsci/bio" | |
tap "brewsci/science" | |
tap "heroku/brew" | |
tap "homebrew/autoupdate" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
tap "homebrew/services" |
tap "brewsci/bio" | |
tap "brewsci/science" | |
tap "heroku/brew" | |
tap "homebrew/autoupdate" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
tap "homebrew/services" |
# Crontab - Crontab template to automate virtual world | |
# Template from https://gist.github.com/bretonics/9a48a3b9ef32d93d15f45c3f007550b4 | |
# Andrés Bretón ~ http://andresbreton.com, dev@andresbreton.com | |
# ============================================================================== | |
# MIN(0-59) HOUR(0-23) DOM(1-31) M(1-12) DOW(0-6) CMD | |
# |__________|_________|_______|________|______ |__MINUTE of | |
# |_________|_______|________|______ |__HOUR of |
# .bash_profile - login shells | |
# Template from https://gist.github.com/bretonics/5176d35739a0f4e7acfd | |
#----------------------------------------------------------------------------------------------- | |
# SOURCE | |
# Get Aliases and Functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc |
# .bashrc - interactive, non-login shells | |
# Template from https://gist.github.com/bretonics/f3b61fcd1fa946df6dac | |
#----------------------------------------------------------------------------------------------- | |
# GLOBAL SOURCE | |
# Global Definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
#!/bin/sh | |
# | |
# Adapted from original source: https://bitbucket.org/snippets/atlassian/qedp7d | |
# Docs: https://git-scm.com/docs/githooks | |
# git prepare-commit-msg hook for automatically prepending an issue key | |
# from the start of the current branch name to commit messages. | |
COMMIT_MSG_FILE=$1 # $1 is the file name containing log message | |
COMMIT_SOURCE=$2 # $2 is the commit message source (message | template | squash | commit) |
#!/bin/bash -l | |
# cellranger.qsub - A template file to run Cell Ranger on Sun Grid Engine (SGE) | |
# Andrés Bretón ~ http://andresbreton.com, dev@andresbreton.com | |
# Template from https://gist.github.com/bretonics/f6c57474bb077d2acd293092cf7fa449# | |
#------------------------------------------------------------------------------- | |
# ENVIRONMENTAL VARIABLES AVAILABLE |
# /path/to/repo/bin/script
BIN_PATH="$(dirname ${BASH_SOURCE})" # gets 'bin' directory path script is in
DIR_PATH="$(dirname $BIN_PATH)" # gets the main 'repo' directory path
for f in *.txt ; do echo "${f/old/new}"; done
# .bash_functions - User bash functions | |
# Template from https://gist.github.com/bretonics/894d8c2d1d4813c36b7d36e9a97aedd6 | |
#------------------------------------------------------------------------------- | |
# SYSTEM | |
mkcd() { | |
mkdir $1; cd $1 | |
} |