Skip to content

Instantly share code, notes, and snippets.

Avatar

Jakub Mosakowski JakubMosakowski

  • SpotOn
View GitHub Profile
@JakubMosakowski
JakubMosakowski / adb-wifi.sh
Created May 28, 2021
A simple script to connect to the device through wifi
View adb-wifi.sh
#!/bin/bash
# 1. Connect the phone using a USB cable.
# 2. Restart adb listening on TCP on 5555 port.
adb tcpip 5555
# 3. Sleep for 1 second (not too clean but that's the simplest way to make sure that the previous command finished).
sleep 1
@JakubMosakowski
JakubMosakowski / updateChangelog.sh
Created Apr 20, 2019
Shell script for automatically generating changelog for a release.
View updateChangelog.sh
#!/usr/bin/env bash
PATH_TO_FILE=$1
FILE_NAME=$2
#Needs two argument: a path to file and filename where changelog will be printed into.
if [ "$#" -lt 2 ]; then
echo 'Correct usage: ./script PATH_WHERE_CREATE_FILE FILENAME'
exit 1
fi