Skip to content

Instantly share code, notes, and snippets.

View itisFarzin's full-sized avatar
:octocat:

Farzin Kazemzadeh itisFarzin

:octocat:
View GitHub Profile
@itisFarzin
itisFarzin / DockerOnUbuntuTouch.md
Last active June 13, 2025 05:12
Docker On Ubuntu Touch

Docker On Ubuntu Touch

How did we get here?

NOTE: The detailed building process for the boot and rootfs only works for devices using the GSI approach (Halium 10 and above).

UPDATE: My MR got merged, yay.

I like to give a purpose to the phones I don't use actively, so let's run Docker on one of them. My experience with running Docker on Ubuntu Touch was a bit rough. I compiled the kernel with the "required" configurations for Docker and lost Wi-Fi. After a couple of days (sigh), I remembered that our kernel uses modules for certain drivers, and one of them was for WLAN. After I generated my own rootfs and flashed it, Wi-Fi started working again. After installing the Apt version of Docker (We get to the reason later on), I got Docker to work—yay!

@SebaUbuntu
SebaUbuntu / README.md
Last active May 11, 2025 08:58
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script
@Skrilltrax
Skrilltrax / usb3-fastboot-fix.bat
Created May 27, 2020 18:02
Fix the USB 3 issues in fastboot
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
@maxrodrigo
maxrodrigo / git-split-and-push.sh
Last active August 28, 2024 08:29
Split a repository into batches to avoid `pack exceeds maximum allowed size` on push
# Split a repository into batches to avoid `pack exceeds maximum allowed size` on git push
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=500
# check if the branch exists on the remote
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# if so, only push the commits that are not on the remote already
range=$REMOTE/$BRANCH..HEAD