Created
August 14, 2018 15:10
-
-
Save TMG-MattNewman/a9fc3740bf1ce7749b8feb1af0a2c6f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ll='ls -FGlAhp' # Preferred 'ls' implementation | |
alias edit='idea' # edit: Opens any file in sublime editor | |
alias f='open -a Finder ./' # f: Opens current directory in MacOS Finder | |
alias o=f | |
alias lista="list_aliases" | |
alias showa="list_aliases" | |
alias qfind="find . -name " # qfind: Quickly search for file | |
alias memHogsTop='top -l 1 -o rsize | head -20' | |
alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10' | |
alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10' | |
alias topForever='top -l 9999999 -s 10 -o cpu' | |
alias ttop="top -R -F -s 10 -o rsize" | |
alias myip='curl ip.appspot.com' # myip: Public facing IP Address | |
alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets | |
alias flushDNS='dscacheutil -flushcache' # flushDNS: Flush out the DNS Cache | |
alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets | |
alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets | |
alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets | |
alias ipInfo0='ipconfig getpacket en0' # ipInfo0: Get info on connections for en0 | |
alias ipInfo1='ipconfig getpacket en1' # ipInfo1: Get info on connections for en1 | |
alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections | |
alias showBlocked='sudo ipfw list' # showBlocked: All ipfw rules inc/ blocked IPs | |
alias mountReadWrite='/sbin/mount -uw /' # mountReadWrite: For use when booted into single-user | |
alias cleanupDS="find . -type f -name '*.DS_Store' -ls -delete" | |
alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' | |
alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' | |
alias cleanupLS="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder" | |
alias apacheEdit='sudo edit /etc/apache2/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 | |
alias tmg:go:root="cd ~/projects/aem-core" | |
alias tmg:go:docker="cd ~/projects/aem64-stack" | |
alias tmg:go:clientlibs="tmg:go:root && ./cq/core-design/src/main/cq/jcr_root/etc/designs/telegraph/core/clientlibs/" | |
alias tmg:go:core="tmg:go:root && cd ./cq/core-app/core-app-commons/src/main/cq/jcr_root/apps/telegraph/core/commons/" | |
alias tmg:mvn:author="mvn clean install crx:install -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -T8" | |
alias tmg:mvn:author:fast="mvn clean install -Pfast crx:install -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -DskipTests -T8" | |
alias tmg:mvn:publisher="mvn clean install crx:install -Dinstance.url=http://localhost:4503 -Dinstance.password=admin -T8" | |
alias tmg:mvn:publisher="mvn clean install crx:install -Dinstance.url=http://localhost:4503 -Dinstance.password=admin -DskipTests -T8" | |
alias tmg:mvn:both="mvn clean install crx:install -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -T8; mvn crx:install -Dinstance.url=http://localhost:4503 -Dinstance.password=admin -T8" | |
alias tmg:mvn:both:fast="mvn clean install crx:install -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -T8; mvn crx:install -Dinstance.url=http://localhost:4503 -Dinstance.password=admin -DskipTests -T8" | |
alias tmg:mvn:jasmine="mvn clean initialize jasmine:bdd -Pexecute-jasmine" | |
alias tmg:mvn:jasmine:headless="mvn clean test -Pexecute-jasmine" | |
alias tmg:mvn:clean:node="tmg:go:root && rm -fr node/ node_modules/" | |
alias tmg:mvn:authoring="mvn clean install crx:install -Pbackend -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -s settings.xml" | |
alias tmg:mvn:authoring:fast="mvn clean install crx:install -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -s settings.xml -DfrontEndUnit.skip=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true" | |
alias tmg:mvn:ooyala="cd ~/projects/aem-ooyala/cq && mvn clean install crx:install -Dinstance.url=http://localhost:4502 -Dinstance.password=admin -s ../settings.xml" | |
alias tmg:docker:up="tmg:go:docker && docker-compose up -d" | |
alias tmg:docker:stop="tmg:go:docker && docker-compose stop --timeout 300" | |
alias tmg:docker:restart="service docker restart" | |
alias tmg:docker:list="docker ps -a" | |
alias tmg:docker:up:author="docker start aem64-author" | |
alias tmg:docker:up:publisher="docker start aem64-publish" | |
alias tmg:docker:up:dispatcher:publish="docker start dispatcher-publish" | |
alias tmg:docker:up:elasticsearch:author="docker start elasticsearch-author" | |
alias tmg:docker:tail:author="docker logs aem64-author" | |
alias tmg:docker:ssh:author="docker exec -it aem64-author bash" | |
alias tmg:docker:ssh:publisher="docker exec -it aem64-publish bash" | |
alias tmg:docker:ssh:dispatcher="docker exec -it dispatcher-publish bash" | |
alias tmg:docker:dispatcher:aem:cache:flush="docker exec -it dispatcher-publish rm -rf \"/opt/aem/cache/*\"" | |
alias tmg:docker:dispatcher:mod_page_speed:flush="docker exec -it dispatcher-publish touch /var/cache/mod_pagespeed/cache.flush" | |
alias tmg:docker:dispatcher:cache:flush="tmg:docker:dispatcher:aem:cache:flush && tmg:docker:dispatcher:mod_page_speed:flush" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment