git add -A && git commit -m “Release 0.0.1.”
git tag ‘0.0.1’
git push –tags
Git cloning from local server
Just a reminder of the order
git clone user@192.168.1.24:~/projects/ios/whatever.git
[Git] saving your identity and password using Credential helper
git config –global credential.helper ‘cache –timeout=3600’
# Set the cache to timeout after 1 hour (setting is in seconds)
Taken from https://help.github.com/articles/caching-your-github-password-in-git/
[Ubuntu] Magic shortcut when PC is frozen
Just a reminder
Alt + ScrPrint (aka Impr pant), then
R, E, I, S, U, B
press each key slowly to let your computer complete every step
[Git] New Branch from previous commit
git checkout -b v34 f556f2ff1b7e45f92e0a3b743af2ec7b7e3dbb6e
[Git] Untrack file safely
git update-index –assume-unchanged nbproject/private/private.xml
To track it again:
git update-index –no-assume-unchanged path/to/file
[Git] deleting a remote branch
Just a reminder because it is the less intuitive command ever
git branch -a
git push origin –delete remote_branch
[Android] Configuring Java 1.8, Android Studio 2.2 on Ubuntu 14.04 32-bit
I had some issues when upgrading Java from 1.7 to 1.8 and Android Studio to 2.2. They can be summed up in this list:
– #1 Android Studio not booting because it detected JDK 1.7 instead of recently installed 1.8
I had to edit /home/user/.profile and add the following lines:
PATH=$PATH:/home/user/android-sdk/platform-tools:/home/user/jdk1.8.0_101/bin
export JAVA_HOME=/home/user/java/jdk1.8.0_101
export STUDIO_JDK=$JAVA_HOME
export JDK_HOME=$JAVA_HOME
– #2 Android Studio not compiling because
Error:Process ‘command ‘/home/olmo/android-studio/jre/bin/java” finished with non-zero exit value 2
Same as before
– #3 Android Studio not compiling my project because of:
android studio unsupported major.minor version 52.0
Had to upgrade build-tools to the last version, which caused error #4.
– #4 Device was not found when running the app (“Nothing to show”).
ADB was not starting. I discovered that by clicking on “Android monitor” to see logcat, and adb was returning an error.
This issue was caused because my system is ubuntu 32-bit.
Solution:
I had to downgrade platform-tools folder to v23.0.1. See
here
After downloading the folder in the link, and replacing my /home/user/android-sdk/platform-tools for this one, apps are launching succesfully in my Android device
Hope it saves several hours to somebody else 🙂
[Android] Writing a % character in strings.xml
[Android] Enabling the Gradle daemon
1.- In your /home/user/.gradle/gradle.properties file:
org.gradle.daemon=true
It will be automatically enabled in a few hours, or you can enable it now by stopping the existing daemons:
gradle stop