Skip to content

Commit

Permalink
add date aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
bdargan committed Jan 16, 2017
1 parent 8c24fd7 commit c4693da
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions _aliases
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ done

#Dates
alias woy='date +"%gW%W"'
alias ymd='date +"%Y-%m-%d"'
alias dmy='date +"%d-%m-%y"'
alias dmyy='date +"%d-%m-%Y"'
alias ymond='date +"%y-%b-%d"'
alias yymond='date +"%Y-%b-%d"'
alias dmony='date +"%d-%b-%y"'
alias dmonyy='date +"%d-%b-%Y"'

# URL-encode strings
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"'
Expand All @@ -150,19 +157,6 @@ alias fixvb='sudo /Library/StartupItems/VirtualBox/VirtualBox restart'

alias sqldev='/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqLDeveloper'

#zipid-pdor
alias ssh-app1='nocorrect ssh [email protected] -t ssh -i ~/.ssh/zipid-prod-v2.pub [email protected]'
alias ssh-app2='nocorrect ssh [email protected] -t ssh -i ~/.ssh/zipid-prod-v2.pub [email protected]'

alias ssh-web1='nocorrect ssh [email protected] -t ssh [email protected]'
alias ssh-web2='nocorrect ssh [email protected] -t ssh [email protected]'

#zipid-staging
alias ssh-web1.staging='nocorrect ssh [email protected] -t ssh [email protected]'
alias ssh-app2.staging='nocorrect ssh [email protected] -t ssh -i .ssh/zipid-test-shared.pem [email protected]'
alias ssh-app1.staging='nocorrect ssh [email protected] -t ssh -i .ssh/zipid-test-shared.pem [email protected]'
alias ssh-app3.staging='nocorrect ssh [email protected] -t ssh -i .ssh/zipid-test-shared.pem [email protected]'

#requires brew install coretuils
if [[ $('uname') == 'Darwin' ]]; then
alias readlink='greadlink'
Expand Down

0 comments on commit c4693da

Please sign in to comment.