2018年9月17日 星期一

which pip

$(head -1 `which pip` | tail -c +3) --version
$(head -1 `which pip3` | tail -c +3) --version

`which pip`  return the location of the app "pip"
ahd head means to show the first line of the app pip

the output will put into the last argument and -c +3



https://stackoverflow.com/questions/42662104/how-to-install-pip-for-python-3-6-on-ubuntu-16-10

2018年8月8日 星期三

bash tp create a file

filename=$dir/file.txt
test -f $filename || touch $filename
Or if you prefer,

filename=file.txt
if [ ! -f $filename ]
then
    touch $filename
fi

2018年6月30日 星期六

pm install

adb shell



pm install "specific apk"



 or


adb -s "my_devices"  install "path to point the apk "

adb select devices

adb devices
AAAAA

adb -s AAAAA shell



shell @ AAAAA

2018年6月25日 星期一

Android blueStack


參考文章列表
https://blog.csdn.net/shellching/article/details/8691172






這篇說明 模擬器 是 把 host 設定為  10.0.2.2 以及要如何設定 可以讓HOST 看到 GUEST


https://blog.csdn.net/u013290890/article/details/19776877



這一篇 也是再說類似的事情  如何 在 BLIESTACK 聯會去HOST 裡面的 XAMPP

https://stackoverflow.com/questions/21513935/access-to-xampp-from-bluestacks



這篇在說明如何修改 wifi MAC

http://www.iku8.com/wiki/25886286.html

2018年6月23日 星期六

android system command

1.some useful
https://github.com/jackpal/Android-Terminal-Emulator/wiki/Android-Shell-Command-Reference

2018年5月10日 星期四

Bridge , NAT and Host only

Information is from 
https://superuser.com/questions/227505/what-is-the-difference-between-nat-bridged-host-only-networking


  • Host-Only: The VM will be assigned one IP, but it's only accessible by the box VM is running on. No other computers can access it.
  • NAT: Just like your home network with a wireless router, the VM will be assigned in a separate subnet, like 192.168.6.1 is your host computer, and VM is 192.168.6.3, then your VM can access outside network like your host, but no outside access to your VM directly, it's protected.
  • Bridged: Your VM will be in the same network as your host, if your host IP is 172.16.120.45then your VM will be like 172.16.120.50. It can be accessed by all computers in your host network.


VMware to edit the network options :

is described as the following: 
http://blog.xuite.net/skhung/digilife/51897040-VMWare+Workstation+網路設定二三事+-+Bridge+篇