From b19051d266dd3388aab3b3ffa005b97d5239261f Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Thu, 5 Apr 2018 16:14:03 -0400 Subject: [PATCH] updates --- bash_aliases | 5 +---- bin/mysql_add_user.sh | 12 ++++++++++++ bin/release_package.sh | 1 + tmux/plugins/tmux-battery | 2 +- zpreztorc | 1 - zshrc.local | 12 +++--------- 6 files changed, 18 insertions(+), 15 deletions(-) create mode 100755 bin/mysql_add_user.sh diff --git a/bash_aliases b/bash_aliases index 8750325..f47193a 100644 --- a/bash_aliases +++ b/bash_aliases @@ -16,10 +16,6 @@ alias shrug="echo -n '¯\_(ツ)_/¯' | pbcopy" alias sl="source local.env" alias stabbats='sudo killall VDCAssistant && open https://appear.in/stab-bats' -if [[ $OSTYPE == darwin* ]]; then - alias rm=trash; -fi; - # Functions function adtest () { no_slashes="$(echo "$1" | sed -e 's/\//\./g')"; @@ -52,3 +48,4 @@ function h () { # options export LESS=-RFX export PAGER="less" +alias love="/Applications/love.app/Contents/MacOS/love" diff --git a/bin/mysql_add_user.sh b/bin/mysql_add_user.sh new file mode 100755 index 0000000..4492de3 --- /dev/null +++ b/bin/mysql_add_user.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +newUser='klaviyo' +newDbPassword='oyivalk' +newDb='test_klaviyo' +host=localhost +#host='%' + +commands="CREATE DATABASE \`${newDb}\`;GRANT USAGE ON *.* TO '${newUser}'@'${host}' IDENTIFIED BY '${newDbPassword}';GRANT ALL privileges ON \`${newDb}\`.* +TO '${newUser}'@'${host}';FLUSH PRIVILEGES;" + +echo "${commands}" | mysql -u root diff --git a/bin/release_package.sh b/bin/release_package.sh index 2cd8b60..8366c2c 100755 --- a/bin/release_package.sh +++ b/bin/release_package.sh @@ -1,5 +1,6 @@ python setup.py clean python setup.py sdist bdist_wheel +python3 setup.py sdist bdist_wheel gpg --detach-sign -a dist/*.gz gpg --detach-sign -a dist/*.whl twine upload dist/* diff --git a/tmux/plugins/tmux-battery b/tmux/plugins/tmux-battery index 8fa3b62..09be78c 160000 --- a/tmux/plugins/tmux-battery +++ b/tmux/plugins/tmux-battery @@ -1 +1 @@ -Subproject commit 8fa3b627b6acc8fb2560b843c47927514bc5fa1d +Subproject commit 09be78c35ee84f858f724442b94ad045ade23eb0 diff --git a/zpreztorc b/zpreztorc index 310f353..daee4d9 100644 --- a/zpreztorc +++ b/zpreztorc @@ -8,7 +8,6 @@ zstyle ':prezto:load' pmodule \ 'utility' \ 'completion' \ 'git' \ - 'python' \ 'prompt' \ 'tmux' diff --git a/zshrc.local b/zshrc.local index c225761..6c2efc5 100644 --- a/zshrc.local +++ b/zshrc.local @@ -9,7 +9,7 @@ export LESS=' -R ' export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s" # Python Virtualenv + Wrapper -export PROJECT_HOME=$HOME/AddGeneProjects +export VIRTUALENVWRAPPER_PYTHON="/usr/local/opt/python/libexec/bin/python" export WORKON_HOME=$HOME/.virtualenvs if [ -e $HOME/.local/bin/virtualenvwrapper.sh ];then source $HOME/.local/bin/virtualenvwrapper.sh @@ -22,6 +22,7 @@ export PYTHONSTARTUP=$HOME/.pythonstartup.py export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH" export NPM_PACKAGES="${HOME}/.npm-packages" export PATH="$NPM_PACKAGES/bin:$GOPATH/bin:$HOME/bin:$PATH" +export PATH="/usr/local/opt/python/libexec/bin:$PATH" # Go Stuff export GOPATH=$HOME/go @@ -38,16 +39,9 @@ if [[ $OSTYPE == "darwin*" ]];then #CPPFLAGS: -I/usr/local/opt/mariadb@10.1/include #PKG_CONFIG_PATH: /usr/local/opt/mariadb@10.1/share/pkgconfig fi -export PATH="$HOME/.Pokemon-Terminal:$PATH" -eval `ssh-agent -s` -if [ -e ~/.ssh/id_addgene ];then - ssh-add ~/.ssh/id_addgene -fi -if [ -e $HOME/.credentials ];then - source $HOME/.credentials -fi source ~/.bash_aliases unsetopt share_history +export PATH=/usr/local/bin:$PATH