break into companies

This commit is contained in:
Tyrel Souza 2022-10-04 15:34:34 -04:00
parent d7446af10a
commit 1999d7997d
No known key found for this signature in database
GPG Key ID: F6582CF1308A2360
3 changed files with 82 additions and 37 deletions

49
jobs/everquote.sh Normal file
View File

@ -0,0 +1,49 @@
#!//bin/bash
# ALIASES
alias kubectl=/opt/homebrew/Cellar/kubernetes-cli@1.22/1.22.10/bin/kubectl
alias ibrew="arch -x86_64 /usr/local/bin/brew"
# FUNCTIONS
function poweruser (){
aws sso login --profile=poweruser
}
function powerpip (){
aws codeartifact login --tool pip --repository internal --domain eq-remarketing --profile poweruser
}
function kubestaging () {
kubectl config use-context shared1-east1-us-staging
kubectl config set-context --current --namespace=remarketing
}
function kubeprod () {
kubectl config use-context shared1-east1-us-prod
kubectl config set-context --current --namespace=remarketing
}
function setup_crypto () {
# Needed for cryptography
export LDFLAGS="$LDFLAGS -L$(brew --prefix openssl@1.1)/lib"
export CFLAGS="$CFLAGS -I$(brew --prefix openssl@1.1)/include"
}
function brew_venv_39 () {
$(brew --cellar python@3.9)/3.9.10/bin/python3 -m venv venv
}
function brew_venv_37 () {
/usr/local/opt/python@3.7/bin/python3 -m venv venv
}
# Prompts for aurora password and doesn't echo it to the terminal, safer for history
function set_aurora () {
echo -ne "Aurora Username: "
read -rs AURORA_USERNAME
export AURORA_USERNAME
echo -ne "\nAurora Password: "
read -rs AURORA_PASSWORD
export AURORA_PASSWORD
echo "\nSet username/password for $AURORA_USERNAME"
}

7
jobs/tidelift.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
function pulldep() {
git pull
bundle
bundle exec rake db:migrate
}

View File

@ -1,6 +1,7 @@
#!/usr/local/bin/zsh #!/usr/local/bin/zsh
export EDITOR=nvim export EDITOR=nvim
export VISUAL=nvim export VISUAL=nvim
# Aliases # Aliases
alias ag='\ag --pager="less -r"' alias ag='\ag --pager="less -r"'
alias c='\cat' alias c='\cat'
@ -11,13 +12,15 @@ alias fuckingip="curl https://wtfismyip.com/json"
alias g='git' alias g='git'
alias gp='git push -u' alias gp='git push -u'
alias httpie="http" alias httpie="http"
alias ibrew="arch -x86_64 /usr/local/bin/brew"
alias ls="exa -lhFgxUm --git --time-style long-iso --group-directories-first" alias ls="exa -lhFgxUm --git --time-style long-iso --group-directories-first"
alias ppjson="python -m json.tool" alias ppjson="python -m json.tool"
alias shrug="echo -n '¯\_(ツ)_/¯' | pbcopy" alias shrug="echo -n '¯\_(ツ)_/¯' | pbcopy"
alias vimini="vim ~/.config/nvim/init.vim" alias vimini="vim ~/.config/nvim/init.vim"
# Functions # Functions
function httpdiff () {
diff --color -r -c <(curl -s "$1" 2>&1) <(curl -s "$2" 2>&1)
}
function cpbr () { function cpbr () {
if branch=$(git symbolic-ref --short -q HEAD) if branch=$(git symbolic-ref --short -q HEAD)
then then
@ -36,52 +39,38 @@ function h () {
history | egrep "$@" history | egrep "$@"
fi fi
} }
function pulldep() { git pull; bundle; bundle exec rake db:migrate; }
settitle () { function settitle () {
echo -ne "\033]0;"$*"\007" echo -ne "\033]0;"$*"\007"
} }
pullall (){ function pullall (){
for d in ./*/ ; do (cd "$d" && pwd && git pull); done for d in ./*/ ; do (cd "$d" && pwd && git pull); done
} }
new_dock_space (){ function gh_mainall (){
for d in ./*/ ; do (cd "$d" && pwd && git checkout main && git pull); done
}
function allbranches (){
for d in ./*/ ; do (cd "$d" && pwd && git remote -v origin && git pull); done
}
function new_dock_space (){
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
} }
poweruser (){ # Jupyter lab!
aws sso login --profile=poweruser function lab () {
} source ~/JUPYTER/bin/activate
powerpip (){ cd ~/scratch
aws codeartifact login --tool pip --repository internal --domain eq-remarketing --profile poweruser powerpip
} pip install -r jupyter_requirements.txt
jupyter lab
kubestaging () { deactivate
kubectl config use-context shared1-east1-us-staging
kubectl config set-context --current --namespace=remarketing
}
kubeprod () {
kubectl config use-context shared1-east1-us-prod
kubectl config set-context --current --namespace=remarketing
}
setup_crypto () {
# Needed for cryptography
export LDFLAGS="$LDFLAGS -L$(brew --prefix openssl@1.1)/lib"
export CFLAGS="$CFLAGS -I$(brew --prefix openssl@1.1)/include"
}
brew_venv_39 () {
$(brew --cellar python@3.9)/3.9.10/bin/python3 -m venv venv
}
brew_venv_37 () {
/usr/local/opt/python@3.7/bin/python3 -m venv venv
}
legacybin () {
docker exec -it legacy /bin/bash
} }
# TODO: Rename repo
source ~/.dotfiles-linux-bash/jobs/tidelift.sh
source ~/.dotfiles-linux-bash/jobs/everquote.sh