This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BUILD_TOOLS=$HOME/Android/Sdk/build-tools/32.1.0-rc1 | |
PATH="$PATH:$BUILD_TOOLS" | |
KEY="$PWD/key.jks" | |
if [ ! -f $KEY ]; then | |
echo "No keystore found in Working Directory. Creating a new one. Please fill the prompts, or cancel and copy your keystore file to $KEY." | |
keytool -genkey -v -keystore key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias apk | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import asyncio | |
import glob | |
import os | |
from time import time | |
import signal | |
# Configuration parameters, read from environment variables with defaults. | |
IDLE_THRESHOLD = int(os.environ.get("IDLE_THRESHOLD", "30")) # Time in seconds before considering the system idle. | |
ACTIVE_GOVERNOR = os.environ.get("ACTIVE_GOVERNOR", "performance") # CPU governor to use when active. |