Skip to content

Instantly share code, notes, and snippets.

View JakubMosakowski's full-sized avatar

Jakub Mosakowski JakubMosakowski

  • SpotOn
View GitHub Profile
@JakubMosakowski
JakubMosakowski / adb-wifi.sh
Created May 28, 2021 08:28
A simple script to connect to the device through wifi
#!/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 April 20, 2019 10:19
Shell script for automatically generating changelog for a release.
#!/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