Skip to content

Instantly share code, notes, and snippets.

View jirevwe's full-sized avatar
🏠
Working from home

Raymond Tukpe jirevwe

🏠
Working from home
View GitHub Profile
@jirevwe
jirevwe / .bash_profile
Last active February 23, 2019 11:10 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
8. WEB DEVELOPMENT
# ---------------------------------------
alias apacheEdit='sudo edit /etc/httpd/httpd.conf' # apacheEdit: Edit httpd.conf
alias apacheRestart='sudo apachectl graceful' # apacheRestart: Restart Apache
alias editHosts='sudo edit /etc/hosts' # editHosts: Edit /etc/hosts file
alias herr='tail /var/log/httpd/error_log' # herr: Tails HTTP error logs
alias apacheLogs="less +F /var/log/apache2/error_log" # Apachelogs: Shows apache error logs
httpHeaders () { /usr/bin/curl -I -L $@ ; } # httpHeaders: Grabs headers from web page