This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import threading | |
from datetime import date, datetime, timedelta | |
from multiprocessing import Pool | |
import requests | |
from bs4 import BeautifulSoup | |
# logging.basicConfig(level=logging.DEBUG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip=`adb shell ip addr show wlan0 | grep 'inet ' | cut -d' ' -f6|cut -d/ -f1` | |
echo "ip found: $ip" | |
adb tcpip 5555 | |
echo "remove the usb cable" | |
read -n 1 | |
echo "connecting.." | |
adb connect $ip:5555 | |
# to return in usb mode use: "adb usb" |