Skip to content

Instantly share code, notes, and snippets.

@andrewmackrodt
andrewmackrodt / asusctl-builder.sh
Last active January 30, 2025 12:13
Ubuntu 22.04 deb creator for asusctl
#!/bin/bash
set -euo pipefail
cd $(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)
build_dir=$(mktemp -d)
cleanup() {
if [[ -d "$build_dir" ]]; then
rm -rf "$build_dir"
fi
@mmtrt
mmtrt / fixdd
Last active March 4, 2025 01:45
[ROOT] [Magisk] [Service.d] [Script] [Fix] DriveDroid on Android 9+
#!/bin/sh
# run while loop for boot_completed status & sleep 10 needed for magisk service.d
while [ "$(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done
sleep 10
# save currently active function name
echo "$(ls -al /config/usb_gadget/g1/configs/b.1/)" | grep -Eo f1.* | awk '{print $3}' | cut -d/ -f8 > /data/adb/.fixdd
# loop
@masemoel
masemoel / BuildGuide.txt
Last active September 3, 2025 17:50
How to build an A14+ ROM from scratch under Ubuntu 24.04 (or based)
To build a A14+ (AOSP/LOS based) on Ubuntu 24.04+ (or distros based on it), there are four main steps:
(This guide is applicable for recoveries as well (TWRP, OFRP...))
Working on Android 14 and upper
#################################################################
# Step 1: Setup your environment #
#################################################################
****Setup Linux to build Android****
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.4.111 Kernel Configuration
#
# modified by crazo7924
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
@dwf
dwf / msnlog.py
Created February 1, 2010 21:04
A script that dumps convoluted XML log files from MSN Messenger to readable plaintext.
"""
Simple script I whipped up to dump MSN Messenger logs in XML to a readable
plaintext format. It's not very robust, nor am I sure which versions of MSN
Messenger it's compatible or incompatible with; I just had a specific
conversation I wanted to read, and this was the vehicle to that end.
By David Warde-Farley -- user AT cs dot toronto dot edu (user = dwf)
Redistributable under the terms of the 3-clause BSD license
(see http://www.opensource.org/licenses/bsd-license.php for details)