Skip to content

Instantly share code, notes, and snippets.

@marquesm91
Created April 9, 2019 12:20
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 marquesm91/f7b2d9f9daf84d70bdadb8043a2eae2a to your computer and use it in GitHub Desktop.
Save marquesm91/f7b2d9f9daf84d70bdadb8043a2eae2a to your computer and use it in GitHub Desktop.
Awesome Line Commands for Awesome Developers
# Clean branches except master and develop (nice to use with git flow)
git branch -D `git branch | grep -vE 'master|develop'`
# Clean cache and reinstall Pods
rm -rf ~/Library/Caches/CocoaPods; rm -rf Pods; rm -rf ~/Library/Developer/Xcode/DerivedData/*; pod deintegrate; pod setup; pod install;
# Clean gradle caches
rm -rf $HOME/.gradle/caches/
# Clean APK in simulator Android (${1} with your package name. e.g com.examplepackage)
adb shell "pm uninstall ${1}; rm -rf /data/app/${1}-*; su -c 'rm -rf /data/app-lib/${1}-*'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment