Skip to content

Instantly share code, notes, and snippets.

@Grayda
Grayda / getKey.sh
Last active June 11, 2019 13:23
Extract the Kepler key
# This downloads kepler.apk from orvibo.com and uses strings and grep with regex to find the line that contains the key.
echo Downloading the Kepler APK from www.orvibo.com..
wget http://www.orvibo.com/software/android/kepler.apk -qO /tmp/kepler.apk
echo Download complete. Extracting and searching for the key. The key should be displayed below.
echo
unzip -p /tmp/kepler.apk classes.dex | strings | grep -e '^[A-Za-n1-9]\{16\}$'
echo
@lindsaymarkward
lindsaymarkward / install_homebridge.sh
Created April 2, 2017 23:13
Install homebridge on hassbian
#!/bin/bash
echo
echo "Homebridge install script for Hassbian"
echo
if [ "$(id -u)" != "0" ]; then
echo "This script must be run with sudo. Use \"sudo ${0} ${*}\"" 1>&2
exit 1
fi
@pamelafox
pamelafox / countryinfo.py
Last active March 24, 2025 15:03
Python list of country codes, names, continents, capitals, and pytz timezones
countries = [
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'},
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'},
{'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"},
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'},
{'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'},
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'},
{'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai