<commit_before>#!/bin/bash
alias v='vagrant'
alias vu='vagrant up'
alias vd='vagrant destroy'
alias vh='vagrant halt'
alias vs='vagrant suspend'

alias simulator='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app'

dockercleanup() {
  docker rmi $(docker images --filter "dangling=true" -q --no-trunc) \
  docker rm $(docker ps -qa --no-trunc --filter "status=exited")
}

# server aliases
alias a3t='ssh analytics3 tail -f /var/log/nodejs/dash.log -n 500'
alias aqat='ssh ad-dash-qa tail -f /var/log/nodejs/dash.log -n 500'

alias vaulte="EDITOR=\$GIT_EDITOR ansible-vault edit --vault-password-file ~/.ssh/vault_pass.txt"
alias vaultv='ansible-vault view --vault-password-file ~/.ssh/vault_pass.txt'
alias vaulten='ansible-vault encrypt --vault-password-file ~/.ssh/vault_pass.txt'
alias vaultde='ansible-vault decrypt --vault-password-file ~/.ssh/vault_pass.txt'
alias vault='ansible-vault --vault-password-file ~/.ssh/vault_pass.txt'

sshsdev () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/sdev_rsa
}

sshpub () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/publishing.pem
}

sshcol () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/acds-collabs.pem
}

sshrkoval () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/aws-sdev-rkoval.pem
}

export AWS_DEFAULT_REGION=us-west-2
export ANSIBLE_VAULT_PASSWORD_FILE=~/.ssh/vault_pass.txt

alias cqlshprod='cqlsh --ssl --cqlshrc ~/.cassandra/cqlshrc-prod'
alias cqlshsdev='cqlsh --ssl --cqlshrc ~/.cassandra/cqlshrc-sdev'
alias cqlshpub='cqlsh --ssl --cqlshrc ~/.cassandra/cqlshrc-pub'

alias dco='docker-compose'
alias dcobrew='brew unlink docker-compose && brew link --overwrite docker-compose'
dpq () {
  docker push quay.io/rewardstyle/$1
}

dcou () {
  if [ -z "$1" ]; then
    echo "usage: $0 {images...}"
    return 1
  fi
  docker-compose stop $@ && docker-compose build $@ && docker-compose up -d --no-deps $@
}

dcodbu () {<commit_msg>removed conflicting aws config<commit_after>#!/bin/bash
alias v='vagrant'
alias vu='vagrant up'
alias vd='vagrant destroy'
alias vh='vagrant halt'
alias vs='vagrant suspend'

alias simulator='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app'

dockercleanup() {
  docker rmi $(docker images --filter "dangling=true" -q --no-trunc) \
  docker rm $(docker ps -qa --no-trunc --filter "status=exited")
}

# server aliases
alias a3t='ssh analytics3 tail -f /var/log/nodejs/dash.log -n 500'
alias aqat='ssh ad-dash-qa tail -f /var/log/nodejs/dash.log -n 500'

alias vaulte="EDITOR=\$GIT_EDITOR ansible-vault edit --vault-password-file ~/.ssh/vault_pass.txt"
alias vaultv='ansible-vault view --vault-password-file ~/.ssh/vault_pass.txt'
alias vaulten='ansible-vault encrypt --vault-password-file ~/.ssh/vault_pass.txt'
alias vaultde='ansible-vault decrypt --vault-password-file ~/.ssh/vault_pass.txt'
alias vault='ansible-vault --vault-password-file ~/.ssh/vault_pass.txt'

sshsdev () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/sdev_rsa
}

sshpub () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/publishing.pem
}

sshcol () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/acds-collabs.pem
}

sshrkoval () {
  IP=$1
  ssh ec2-user@$IP -i ~/.ssh/aws-sdev-rkoval.pem
}

export ANSIBLE_VAULT_PASSWORD_FILE=~/.ssh/vault_pass.txt

alias cqlshprod='cqlsh --ssl --cqlshrc ~/.cassandra/cqlshrc-prod'
alias cqlshsdev='cqlsh --ssl --cqlshrc ~/.cassandra/cqlshrc-sdev'
alias cqlshpub='cqlsh --ssl --cqlshrc ~/.cassandra/cqlshrc-pub'

alias dco='docker-compose'
alias dcobrew='brew unlink docker-compose && brew link --overwrite docker-compose'
dpq () {
  docker push quay.io/rewardstyle/$1
}

dcou () {
  if [ -z "$1" ]; then
    echo "usage: $0 {images...}"
    return 1
  fi
  docker-compose stop $@ && docker-compose build $@ && docker-compose up -d --no-deps $@
}

dcodbu () {
{'fraction_non_alphanumeric': 0.1703545721141029, 'fraction_numerical': 0.010930418555051986, 'mean_word_length': 3.7373737373737375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3577676', 'n_tokens_mistral': 1628, 'n_tokens_neox': 1521, 'n_words': 313}