Skip to content

Instantly share code, notes, and snippets.

Avatar

Luca Weiss z3ntu

View GitHub Profile
@z3ntu
z3ntu / repack.sh
Created Jul 30, 2021
repack boot.img unpacked with unpackbootimg -- https://github.com/osm0sis/mkbootimg
View repack.sh
#!/bin/bash
prefix="$1"
shift
if [ -z "$prefix" ]; then
echo "ERROR: provide prefix!"
exit 1
fi
@z3ntu
z3ntu / shell-commands.sh
Last active Apr 17, 2020
cmake git bisect
View shell-commands.sh
git bisect start
git bisect good v3.15.0
git bisect bad origin/master
git bisect run ~/dev/postmarketOS/unity8-stuff/system-settings-bisect-script.sh
@z3ntu
z3ntu / 1.patch
Last active Feb 27, 2020
downstreamkernel_package & downstreamkernel_prepare patches
View 1.patch
diff --git a/device/linux-xiaomi-santoni/APKBUILD b/device/linux-xiaomi-santoni/APKBUILD
index 69dc4556..c9426910 100644
--- a/device/linux-xiaomi-santoni/APKBUILD
+++ b/device/linux-xiaomi-santoni/APKBUILD
@@ -52,23 +52,7 @@ build() {
}
package() {
- # kernel.release
- install -D "$builddir/include/config/kernel.release" \
@z3ntu
z3ntu / rotation_matrix.py
Last active Jan 28, 2021
generate the iio rotation matrix
View rotation_matrix.py
#!/usr/bin/python3
import glob
import os
import sys
import time
"""
(according to Android emulator, seems to be inverse for iio)
upright/normal: 0 9.81 0
@z3ntu
z3ntu / appveyor.patch
Last active Apr 27, 2019
CI bringup for razer_test in patches
View appveyor.patch
From 74c524a0ea3b29e17464cd7062eb0c6a28ac4a7d Mon Sep 17 00:00:00 2001
From: Luca Weiss <luca@z3ntu.xyz>
Date: Mon, 20 Aug 2018 16:49:10 +0200
Subject: [PATCH 01/46] Appveyor try 1
---
.appveyor.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 .appveyor.yml
@z3ntu
z3ntu / FP2.conf
Last active Oct 7, 2018
Alsa UCM pmOS FP2
View FP2.conf
# UCM configuration for FP2
Comment "Fairphone 2"
SectionUseCase."HiFi" {
File "hifi"
Comment "Play HiFi quality music."
}
View check_if_mirserver_so_broken.sh
#!/bin/bash
set -e
exitcode=0
patch -Np1 < ../disable-tests.patch
patch -Np1 < ../fix-musl-errors.patch
patch -Np1 < ../fix-musl-locale-crash.patch
patch -Np1 < ../replace-bash-for-env.patch
View virt-manager.patch
diff --git a/setup.py b/setup.py
index 7ca6d6777f8c..50f97f07236f 100755
--- a/setup.py
+++ b/setup.py
@@ -671,6 +671,8 @@ distutils.core.setup(
("share/virt-manager/virtcli",
glob.glob("virtcli/*.py") + glob.glob("virtcli/cli.cfg")),
("share/virt-manager/virtinst", glob.glob("virtinst/*.py")),
+ ("share/virt-manager/virtinst/devices", glob.glob("virtinst/devices/*.py")),
+ ("share/virt-manager/virtinst/domain", glob.glob("virtinst/domain/*.py")),
View gist:8d040a74e68cda3e44145b9b5b0b2d99
i=0; while true; do echo $i > /dev/kmsg; i=$((i+1)); sleep 0.1; done
View hierachy.txt
DONE EXCEPT THE OBVIOUS msm8974-mdss-panels.dtsi
msm8974pro-ab-pm8941-mtp.dts
|
- msm8974pro-ab-pm8941.dtsi
|
- msm8974pro-pm8941.dtsi
|
- msm8974pro.dtsi
|