Skip to content

Instantly share code, notes, and snippets.

@sharat9211
sharat9211 / boilerplate.sh
Created Oct 18, 2017
Packages i always install on an ubuntu box when starting with a nodejs project
View boilerplate.sh
NODE_SOURCE="https://deb.nodesource.com/setup_8.x"
NODE_CURL_ARGS="-sL"
#Install nginx
sudo apt-get install nginx -y
#Install nodejs
curl $NODE_CURL_ARGS $NODE_SOURCE | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
@sharat9211
sharat9211 / adb-wifi
Created Jul 17, 2019
Useful adb commands for working with devices over wifi
View adb-wifi
//The information below is taken from https://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp
//To connect to an adb device over wifi
adb tcpip 5555
adb connect <ip_address_of_device>:5555
//To find out ip address of the device
adb shell ip -f inet addr show wlan0
//To disconnect