<commit_before>postgresql() {
    postgres -D /usr/local/var/postgres
}

mongodb() {
    mongod --config /usr/local/etc/mongod.conf
}

alias dcos-ssh="dcos node ssh --master-proxy --leader --user=centos"
alias dcos-cqlsh="dcos-ssh 'sudo docker run -ti cassandra:3.4 cqlsh node-0.cassandra.mesos'"

alias aws-ecrgetlogin="aws ecr get-login --region=us-east-1 --no-include-email"
alias aws-ecrlogin="aws ecr get-login --region=us-east-1 --no-include-email | bash"
alias dockenv='eval "$(docker-machine env default)"'
alias emacsd='emacs --daemon'
alias emacst='emacsclient -t'
alias gst="git status"
alias gs=gst

alias grt="git root"
alias gco="git checkout"

gac() {
    git add -A $(git root) && git commit -m "$@"
}

alias gd="git diff"

gj() {
    cd `git root`
}

gi() {
    curl -L -s https://www.gitignore.io/api/$@
}

alias glog='git log --oneline --decorate --graph'

# Initialize a new project.
pinit() {
    mkdir -p $HOME/proj/$1 && cd $HOME/proj/$1 && git init && echo "# $1" > README.md && emacsclient -n README.md
}

ghclone() {
    mkdir -p ~/proj/$1 && cd ~/proj/$1 && hub clone -p $1/$2 && cd $2
}

ghnew() {
    mkdir -p ~/proj/$1/$2 && cd ~/proj/$1/$2 && git init && hub create -p $1/$2
}

ghnewu() {<commit_msg>Remove hub dependency from ghclone<commit_after>postgresql() {
    postgres -D /usr/local/var/postgres
}

mongodb() {
    mongod --config /usr/local/etc/mongod.conf
}

alias dcos-ssh="dcos node ssh --master-proxy --leader --user=centos"
alias dcos-cqlsh="dcos-ssh 'sudo docker run -ti cassandra:3.4 cqlsh node-0.cassandra.mesos'"

alias aws-ecrgetlogin="aws ecr get-login --region=us-east-1 --no-include-email"
alias aws-ecrlogin="aws ecr get-login --region=us-east-1 --no-include-email | bash"
alias dockenv='eval "$(docker-machine env default)"'
alias emacsd='emacs --daemon'
alias emacst='emacsclient -t'
alias gst="git status"
alias gs=gst

alias grt="git root"
alias gco="git checkout"

gac() {
    git add -A $(git root) && git commit -m "$@"
}

alias gd="git diff"

gj() {
    cd `git root`
}

gi() {
    curl -L -s https://www.gitignore.io/api/$@
}

alias glog='git log --oneline --decorate --graph'

# Initialize a new project.
pinit() {
    mkdir -p $HOME/proj/$1 && cd $HOME/proj/$1 && git init && echo "# $1" > README.md && emacsclient -n README.md
}

ghclone() {
    mkdir -p ~/proj/$1 && cd ~/proj/$1 && git clone <EMAIL>@github.com:$1/$2.git && cd $2
}

ghnew() {
    mkdir -p ~/proj/$1/$2 && cd ~/proj/$1/$2 && git init && hub create -p $1/$2
}

ghnewu() {
{'fraction_non_alphanumeric': 0.1921693967239313, 'fraction_numerical': 0.015181781861765881, 'mean_word_length': 3.1663893510815306, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4838276', 'n_tokens_mistral': 1031, 'n_tokens_neox': 989, 'n_words': 261}