This file contains hidden or 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
# purge phpstorm related files | |
find ~/Library/Preferences/ -iname "*phpstorm*" 2> /dev/null | xargs rm -rf | |
find ~/Library/Caches/ -iname "*phpstorm*" 2> /dev/null | xargs rm -rf | |
find ~/Library/Application\ Support/ -iname "*phpstorm*" 2> /dev/null -exec rm -rf {} + | |
find ~/Library/Logs/ -iname "*phpstorm*" -exec rm -rf {} + | |
# purge IntelliJIdea related files | |
find ~/Library/Preferences/ -iname "*intellij*" 2> /dev/null | xargs rm -rf | |
find ~/Library/Caches/ -iname "*intellij*" 2> /dev/null | grep "IntelliJIdea" | xargs rm -rf | |
find ~/Library/Application\ Support/ -name "*IntelliJIdea*" 2> /dev/null -exec rm -rf {} + |
This file contains hidden or 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
#!/bin/bash | |
#### print local ip address #### | |
alias ipaddr="echo $(ifconfig | grep broadcast | awk '{ print $2 }')" | |
#### print external ip address | |
alias external_ipv4="echo $(curl -s https://api.ipify.org)" | |
alias external_ipv6="echo $(curl -s https://api64.ipify.org)" | |
#### proxy settings #### | |
# normal proxy | |
PROXY="http://127.0.0.1:7890" |