- connect the phone to the pc using the usb port
- Enable adb over network in Developer options
- Go to the terminal and look for your phone
adb devices
- and then use the device id that you got:
An array is an object in javascript. It has useful method to play with
#!/bin/bash | |
# instructions in INSTALL file on repository https://github.com/freedesktop/libqmi/ | |
git clone https://github.com/freedesktop/libqmi/ | |
cd libqmi | |
git checkout 1.28.2 | |
# get dependencies libraries (Ubuntu) | |
sudo apt-get install glib-networking libmbim-glib-dev autoconf-archive python | |
# compilation |
#!/bin/bash | |
# from http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/ | |
sudo apt-get install build-essential cmake pkg-config libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgtk-3-dev libatlas-base-dev gfortran python2.7-dev python3.5-dev -y | |
wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.1.0.zip | |
unzip opencv.zip | |
#contribut packages | |
wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.1.0.zip | |
unzip opencv_contrib.zip |
#install it first | |
sudo apt install arp-scan | |
sudo arp-scan --interface enp0s25 -l |
#!/bin/bash | |
FILE=hosts.txt | |
sudo nmap -sP -PR 192.168.137.1/24 -oN $FILE | |
sed -i '/Host is/d' $FILE | |
sed -i '/MAC/d' $FILE | |
sed -i 's/Nmap scan report for//g' $FILE | |
sort $FILE -o $FILE |
software that works well in wayland see https://arewewaylandyet.com/
on KDE select "Scalling themselves" under "X11 legacy applications" on display settings will fix blurring scaling on most of application but some will look strange (small icons and so on), you can fix it by adding
GDK_SCALE=2 GDK_DPI_SCALE=0.5
as envinroment variables to applications that won't scale correctly.
#include <QObject> | |
#include <QTcpServer> | |
#include <QTcpSocket> | |
/* | |
Tcp socket communication example | |
Note: the signal writeToSocket is used to write into the last opened socket | |
**/ |