Skip to content

Instantly share code, notes, and snippets.

@developer88
Last active December 18, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developer88/5803768 to your computer and use it in GitHub Desktop.
Save developer88/5803768 to your computer and use it in GitHub Desktop.
.bash_profile for Mac OS X
# Hack for using proxy on MacOS X
export http_proxy="http://LOGIN:PASSWORD@ADDRESS:PORT"
export ftp_proxy="http://LOGIN:PASSWORD@ADDRESS:PORT"
export FTP_PROXY="http://LOGIN:PASSWORD@ADDRESS:PORT"
export HTTP_PROXY="http://LOGIN:PASSWORD@ADDRESS:PORT"
export ALL_PROXY="http://LOGIN:PASSWORD@ADDRESS:PORT"
# Aliases
alias curl="curl -x LOGIN:PASSWORD@ADDRESS:PORT"
alias svn=colorsvn
# Build-in apache
alias apache='sudo apachectl'
alias apache_config='sudo vim /etc/apache2/httpd.conf'
alias apache_user_config='sudo vim /etc/apache2/users/eremin_av.conf'
# Android
alias avd='PATH_TO_ADNROID_SDK/sdk/tools/android avd'
# Build-in php
alias php_config_old='sudo vim /etc/php.ini'
alias php_config='sudo vim /private/etc/php.ini'
# Ruby
alias ruby_server='ruby -run -e httpd . -p 8888'
alias be='bundle exec '
alias ber='bundle exec rake'
alias 'faye'='rackup faye.ru -s thin -E production'
# Common
alias profile='vim ~/.bash_profile'
alias update_self='source ~/.bash_profile'
alias WebSites='cd ~/Sites'
# Tools
alias 'rebase'='git pull --rebase'
alias 'development'='cd /Users/developer/Documents/DEVELOPMENT'
alias 'make_coffee'='coffee -w --compile'
alias 'tocoffee'='coffee -w --compile'
# DataBase
alias 'pg_sql_restore'='PGPASSWORD=!some_password! psql -cO -U !user_name! -d !db_name! -h localhost -f ' # + set path to backup file
alias 'pg_tar_restore'='PGPASSWORD=!some_password! pg_restore -cO -U !user_name! -d !db_name! -h localhost ' # + set path to backup file
alias 'get_db_backup'='scp !user_name!@!server_address!:/tmp/fresh_backup.tar ' # + set destination path
ssh-add ~/.ssh/id_rsa # Hack for some bugs in MacOsX
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment