I hereby claim:
- I am letroll on github.
- I am letroll (https://keybase.io/letroll) on keybase.
- I have a public key ASADHdJ2ZGYNbrAqjwxgzyA9Mw9k5NqjELRy0RNc20DBEwo
To claim this, I am signing this object:
https://technastic.com/adb-shell-commands-list/ | |
#Insert text (obs: %s means SPACE) | |
adb shell input text "insert%syour%stext%shere" | |
#Event codes (82 ---> MENU_BUTTON) | |
adb shell input keyevent 82 | |
#Tap X,Y position (Settings > Developer Options > Check the option POINTER SLOCATION) | |
adb shell input tap 500 1450 |
Generate Keystores | |
To generate keystores for signing Android apps at the command line, use: | |
$ keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 | |
A debug keystore which is used to sign an Android app during development needs a specific alias and password combination as dictated by Google. To create a debug keystore, use: | |
$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 | |
Keystore name: "debug.keystore" |
sudo htpasswd -c .htpasswd username |
find . -name "*toto*" -exec rm -f '{}' + |
/** | |
* ConditionalDivider is a [RecyclerView.ItemDecoration] that can be used as a divider | |
* between items of a [LinearLayoutManager]. It supports both [.HORIZONTAL] and | |
* [.VERTICAL] orientations. | |
* | |
* <pre> | |
* dividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), | |
* mLayoutManager.getOrientation()); | |
* recyclerView.addItemDecoration(dividerItemDecoration); | |
</pre> * |
nmap -sP 192.168.1.0/24 |
//selection la version indiqué | |
sudo xcode-select -switch /Users/JOHN/Downloads/Xcode45-DP3.app | |
//affiche le chemin de la version en cours d'utilisation | |
xcode-select --print-path |
pour être notifié des connexions/déconnexions adb sans poller `adb devices`, on peut parler avec le démon directement : | |
```netcat localhost 5037 <<< 0012host:track-devices | |
``` | |
(pratique pour effectuer une action dès qu'un nouveau device est connecté |
I hereby claim:
To claim this, I am signing this object:
Users in Linux can belong to more than one group. In this case you want to create a brand new group, let's call it tomandruser:
sudo groupadd tomandruser Now that the group exists, add the two users to it:
sudo usermod -a -G tomandruser tomcat6 sudo usermod -a -G tomandruser ruser Now all that's left is to set the permissions on the directory:
sudo chgrp -R tomandruser /path/to/the/directory