Skip to content

Instantly share code, notes, and snippets.

View tytydraco's full-sized avatar
🦆
Quack!

Tyler N. tytydraco

🦆
Quack!
View GitHub Profile
@44670
44670 / gist:42a1baa1fe770c2a37170ca0ad6f7737
Last active May 6, 2025 05:21
Allwinner D1 Set HDMI Resolution
HDMI_RESOLUTION=5 #720p
cd /sys/kernel/debug/dispdbg
echo disp0 > name; echo switch1 > command; echo 4 $HDMI_RESOLUTION 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start;
@tytydraco
tytydraco / cleaner.sh
Last active June 4, 2021 23:52
Clear data and cache of disabled pacakges
#!/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"
@jagogardiner
jagogardiner / dhrybench.sh
Last active March 23, 2022 05:18
A dhrystone benchmark script I made for finding out dhrystones per frequency, which can be used to find CPU capacities.
#!/bin/sh
# User tunables
# Number of cores in the system
coreno=8
# Cores in the big cluster
bigcluster=4
# Cores in the little cluster