Skip to content

Instantly share code, notes, and snippets.

View MichaelTendoSsemwanga's full-sized avatar

Michael Tendo Ssemwanga MichaelTendoSsemwanga

View GitHub Profile
@echo off
heroku config | findstr CLEARDB > config.txt
set /p url=<config.txt
set "string=%url:?=" & set "x=%"
set "x=%string:/=" & set "dbname=%"
echo DB name: %dbname%
echo DB name: %dbname% >> config.txt
# create executable adbwifi with the following contents
adb kill-server
adb tcpip 5555
# create executable connect with the following contents
IP=$(adb shell ip addr show wlan0 | awk '/inet / {print $2}' | cut -d'/' -f 1)
adb connect $IP:5555