This file contains 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
import math | |
import decimal | |
### BEGIN USER TUNABLS ### | |
tolerance = 14 # max ms for scheduling | |
tasks = 8 # avg tasks occurring at any instance | |
cores = 8 # cores allowed to contain tasks | |
hz_min = 1 # min hz allowed | |
hz_max = 2000 # max hz allowed | |
inc = 1 # hz increment |
This file contains 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
import urllib.request, json | |
import matplotlib.pyplot as plt | |
import numpy | |
from scipy.interpolate import * | |
with urllib.request.urlopen("https://pomber.github.io/covid19/timeseries.json") as url: | |
data = json.loads(url.read().decode()) | |
date = [] |
This file contains 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
import re, sys | |
if len(sys.argv) != 3: | |
print(f"""Usage: {sys.argv[0]} <base_defconfig> <custom_defconfig> | |
For best results, use savedefconfig generated configs.""") | |
exit(1) | |
cfg_base = sys.argv[1] | |
cfg_custom = sys.argv[2] |
This file contains 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/python | |
# Tyler Nijmeh <tylernij@gmail.com> | |
from scipy import interpolate | |
# P.S.: The default target values are from sdm660 | |
# P.S.: The default source values are from sdm632 | |
# Target frequencies | |
target_cluster0_freqs = [633600, 902400, 1113600, 1401600, 1536000, 1747200, 1843200] |
This file contains 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
# Written by Draco (tytydraco) @ GitHub | |
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
# ChArch local bin path | |
BINPATH="$SCRIPTPATH/bin" | |
# Options to pass to ChArch commands | |
CHARCH_OPTS="-d $SCRIPTPATH" |
This file contains 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
#!/system/bin/sh | |
# Written by Draco (tytydraco @ GitHub) | |
set -e | |
MAGISKBOOT="/data/adb/magisk/magiskboot" | |
err() { | |
echo -e "\e[91m[!] $@\e[39m" | |
exit 1 |
This file contains 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/bash | |
# Written by Draco (tytydraco) @ GitHub | |
# Check for root permissions | |
if [[ `id -u` -ne 0 ]] | |
then | |
echo "[!] No root permissions. Exiting." | |
exit 1 | |
fi |
This file contains 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 bash | |
disabled_pks="$(pm list packages -d | sed 's/package://')" | |
for pkg in $disabled_pks | |
do | |
echo "----- $pkg -----" | |
pm uninstall "$pkg" &> /dev/null | |
echo "- UNINSTALLED UPDATES" | |
pm disable-user "$pkg" &> /dev/null | |
echo "- DISABLED AGAIN" |
This file contains 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
#!/system/bin/sh | |
LOCAL=false | |
PORT=65432 | |
usage() { | |
echo "Usage: $0 [-h] [-l] [-k] [-p PORT] | |
-h Show this screen | |
-l Only allow localhost connections | |
-k Kill any open netcat sessions |
This file contains 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 bash | |
xinput test-xi2 --root 3 | \ | |
gawk '/RawKeyRelease/ {getline; getline; print $2; fflush()}' | \ | |
while read -r key | |
do | |
[[ "$key" -ne 34 && "$key" -ne 35 ]] && continue | |
VOL="+15%" | |
[[ "$key" -eq 34 ]] && VOL="-15%" |
OlderNewer