Skip to content

Instantly share code, notes, and snippets.

@basilgello
basilgello / set-timezone-from-gps.sh
Created May 16, 2020 21:16
Set timezone by geolocation on Android using root sheel, Termux and IPgeolocation.io
#!/bin/sh
#
# Proof-of-concept geolocation-based timezone changer
#
# Requires:
#
# * Termux with termux-api package installed
# * Fine locatiin permission granted
# * Free API ey from https://ipgeolocation.io
@basilgello
basilgello / lineageos-gerrit-repopick-topic.sh
Last active February 5, 2023 11:48
Cherry-pick topic branch from LineageOS Gerrit code-review server
#
# Source it from your LineageOS build environment:
#
# . lineageos-gerrit-repopick-topic.sh
#
# then use it, for example:
#
# repopick_topic n-asb-2020-05
#
# to pick the May 2020 ASB for LineageOS 14.1
@basilgello
basilgello / check-pwned-password.sh
Created May 2, 2019 17:54
HaveIBeenPwned password-checker script function for bash / zsh / Termux
#
# Checks passwords in HIBP range
#
# $1 - (optional) quoted password
#
check_pwned_password()
{
PWNCANDIDATE="$1"
if [ -z "$PWNCANDIDATE" ]; then