Skip to content

Instantly share code, notes, and snippets.

View spezifisch's full-sized avatar
🐢
I may be slow to respond.

spezifisch

🐢
I may be slow to respond.
View GitHub Profile
@spezifisch
spezifisch / debian-ensure-unattended-upgrades.sh
Created October 8, 2024 23:31
Automated Setup for Security-Only Unattended Upgrades on Debian Systems
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-only
#
# Author: spezifisch <spezifisch+gpl@gmail.com>
# Date: 2024-10-09
# Function to prompt for overwrite
prompt_overwrite() {
local file=$1
if [[ -f "$file" ]]; then
@spezifisch
spezifisch / szf-evening.json
Created October 2, 2024 20:28
cool-retro-term theme
{
"backgroundColor": "#000000",
"fontColor": "#ff8100",
"flickering": 0,
"horizontalSync": 0,
"staticNoise": 0,
"chromaColor": 0.2483,
"saturationColor": 0.2483,
"screenCurvature": 0,
"glowingLine": 0,
# ~/bin/vendor_sleuth.sh| grep -vE '^(extra|match-)'
mismatch-vendor/stock vendor/etc/camera/camxoverridesettings.txt
mismatch-vendor/stock vendor/etc/init/init.batterysecret.rc
mismatch-vendor/stock vendor/etc/qdcm_calib_data_xiaomi_k6s_38_0c_0a_fhd_dsc_video_dsi_panel.xml
mismatch-vendor/stock odm/etc/build_S88006AA1.prop
mismatch-vendor/stock odm/etc/build_S88007AA1.prop
mismatch-vendor/stock odm/etc/build_S88007EA1.prop
mismatch-vendor/stock odm/etc/build_S88008BA1.prop
mismatch-vendor/stock odm/etc/build_S88106BA1.prop
mismatch-vendor/stock odm/etc/build_S88107BA1.prop
@spezifisch
spezifisch / adb-shell-as-root-dump-vendor.sh
Last active August 29, 2024 17:06
LineageOS device|vendor|stock comparer
tar -cvzf /sdcard/proprietary-files.tar.gz /odm/etc /product/app /product/priv-app /system/etc /system_ext/app /system_ext/bin /system_ext/etc /system_ext/framework /system_ext/lib64 /system_ext/priv-app /system/framework /vendor/app /vendor/bin /vendor/etc /vendor/firmware /vendor/gpu /vendor/lib64 /vendor/lib
@spezifisch
spezifisch / lineage-signing-builds.md
Last active August 29, 2024 16:49 — forked from A2L5E0X1/lineage-signing-builds.md
Signing LineageOS builds with your own dev-keys (Lineage 21 and newer)

Generating dev-keys to sign android builds (Lineage 21 and newer)

All you need is an Android buildsystem (LineageOS is recommended)

PART 1: GENERATING KEYS

  1. Export your infos (replace examples with your infos)
subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/'
@spezifisch
spezifisch / config.yaml
Created August 23, 2024 00:49
incus android adb/fastboot/xiaomi rules
devices:
usb:18d1:4ee7:
gid: "46"
mode: "0660"
productid: 4ee7
type: unix-hotplug
vendorid: 18d1
usb:18d1:d001:
gid: "46"
mode: "0660"
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEZr+BkRYJKwYBBAHaRw8BAQdAPhDaV05vS2LLSCbEAJUf533X1NfNtQer8xAy
bMyMSuO0KXNwZXppZmlzY2ggPHNwZXppZmlzY2grYW5kcm9pZEBnbWFpbC5jb20+
iJkEExYKAEEWIQRZQk+jks3JE9VKkJkKbuL4UpKD8gUCZr+BkQIbAwUJAeEzgAUL
CQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRAKbuL4UpKD8n72AQC6QREK/EY5
Zkrez8OD6dLCe96mTPWk8e67OO3m0uSC/QD/fzjwa00ByObozhrM+gRLtuZuKWRY
q/S2mFpn3+nLhQ4=
=reOu
-----END PGP PUBLIC KEY BLOCK-----
@spezifisch
spezifisch / sokobansolver.html
Last active August 15, 2024 17:16
Sokoban Solver and Visualizer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sokoban Solver</title>
<style>
canvas {
border: 1px solid black;
@spezifisch
spezifisch / keybindings.json
Created August 7, 2024 18:03
vscode ctrl+w to delete word (you also need to unbind the default ctrl+w binding)
{
"key": "ctrl+w",
"command": "deleteWordLeft",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
}
package main
import (
"fmt"
"time"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"