Grabs a screenshot from the Android device and stores directly on OS X
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
##Branch Management
show all branches git branch -v
git branch -a
delete branch git branch -d
clone a single branch git clone -b mybranch --single-branch git://sub.domain.com/repo.git
##Discard Changes / Commits
Discard all local changes and commitsgit reset --hard origin/master
##Manage commit histories Remove all commit hstories for file contains sensitive data:
Here's a correct table of percentages to hex values. E.g. for 50% white you'd use #80FFFFFF. 100% — FF 95% — F2 90% — E6 85% — D9 80% — CC 75% — BF 70% — B3 65% — A6 60% — 99 55% — 8C
###Generate certificate fingerprints for Google API key
In home directory, run
keytool -list -v -keystore ~/.android/debug.keystore
Default password is android
Remember to add both release & debug keystore fingerprint to the developer console.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="1dp" | |
android:layout_height="fill_parent" | |
android:orientation="vertical"> | |
<View | |
android:layout_width="fill_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:background="@android:color/white"/> | |
<View |