Skip to content

Instantly share code, notes, and snippets.

View apuppy's full-sized avatar

KevinLee apuppy

View GitHub Profile
# 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 {} +
#!/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"