Halaman

Selasa, 26 April 2016

Usefull ADB commands [Android]

Taken from : https://thangamaniarun.wordpress.com/2013/04/19/useful-android-adb-commands-over-usbwi-fi/
#connect adb over wi-fi
adb shell setprop service.adb.tcp.port 5555 && stop adbd && start adbd
adb connect
#Unlock your Android screen
adb shell input keyevent 82
#Lock your Android screen
adb shell input keyevent 6
adb shell input keyevent 26
#Open default browser
adb shell input keyevent 23
#Keep your android phone volume up(+)
adb shell input keyevent 24
#Keep your android phone volume down(-)
adb shell input keyevent 25
#Go to your Android Home screen
adb shell input keyevent 3
#Take Screenshot from adb
adb shell screenshot /sdcard/test.png#Another Screen capture command
#screencap [-hp] [-d display-id] [FILENAME]
# -h: this message
# -p: save the file as a png.
# -d: specify the display id to capture, default 0
#start clock app
adb shell am start com.google.android.deskclock
#stop clock app
adb shell am force-stop com.google.android.deskclock
#start wifi settings manager
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
#Testing wifi status – Thanks Saimadhu
adb shell am start -n com.android.settings/.wifi.WifiStatusTest
Below commands only works on Rooted Devices – Thanks Pooja Shah for asking the questions
#wifi on
adb shell svc wifi enable
#wifi off
adb shell svc wifi disable
#Mobile Data on
adb shell svc data enable
#Mobile Data off
adb shell svc data disable
I hope some one will benefits:)

Rabu, 17 Februari 2016

.Net on Ubuntu


Sementara ini dulu step-step nya..
  1. http://docs.asp.net/en/latest/getting-started/installing-on-linux.html#installing-on-ubuntu-14-04
  2. sudo npm install -g yo generator-aspnet
  3. yo aspnet
  4. dnvm use default -r coreclr
  5. dnu build --framework dnxcore50
  6. dnx -p project.json web

Jumat, 05 Februari 2016

Ubuntu 14.04 Postgre

As simple as this:
sudo apt-get install postgresql postgresql-contrib
createuser new_postgre_user
createdb new_postgre_user the_new_db

and then to login to psql
$ psql --host=127.0.0.1 --username=new_postgre_user --dbname=the_new_db

Voila!