Skip to content

Instantly share code, notes, and snippets.

View crazo7924's full-sized avatar
🤫
secretly working on something

Bharat Dev Burman crazo7924

🤫
secretly working on something
View GitHub Profile
/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@b23prodtm
b23prodtm / wsl2-setup-desktop-gnome.sh
Last active May 6, 2025 02:01
How to install Gnome for Ubuntu 22.04 on WSL2?
#!/usr/bin/env bash
if [ -z $(command -v wslvar) ]; then printf "%s\n" "Install package wslu please" ; sleep 2; exit 0; fi
username=$(wslvar USERNAME | awk '{ print tolower($0) }' )
mkdir -p --parents "/mnt/c/users/$username/.ubuntu/"
cd "/mnt/c/users/$username/.ubuntu"
if [ ! -f /etc/apt/sources.list.d/microsoft-prod.list ]; then
sudo apt-key adv --fetch-keys https://packages.microsoft.com/keys/microsoft.asc
sudo apt update
fi
if [ ! -f /etc/apt/sources.list.d/wsl-transdebian.list ]; then
@techyminati
techyminati / realme-codenames.md
Last active December 27, 2025 17:54
Internal Codenames of realme Devices

realme's internal codenames

Realme series:

  • CC027 (Realme 1)
  • banana (Realme U1)
  • DD045/DD090/DD093/DD095/DD141/DD145 (Realme 2)
  • ZAL1810 (Realme 3/3i)
  • UNKNOWN (Realme 5)
  • UNKNOWN (Realme 5i)
  • UNKNOWN (Realme 5s)
@colinrtwhite
colinrtwhite / complex_forwarding_painter.kt
Last active October 9, 2025 07:39
A painter that wraps another painter to overwrite its color filter, alpha, and/or onDraw.
/**
* Create and return a new [Painter] that wraps [painter] with its [alpha], [colorFilter], or [onDraw] overwritten.
*/
fun forwardingPainter(
painter: Painter,
alpha: Float = DefaultAlpha,
colorFilter: ColorFilter? = null,
onDraw: DrawScope.(ForwardingDrawInfo) -> Unit = DefaultOnDraw,
): Painter = ForwardingPainter(painter, alpha, colorFilter, onDraw)
@A2L5E0X1
A2L5E0X1 / lineage-signing-builds.md
Last active January 26, 2026 22:15
Signing LineageOS builds with your own dev-keys

Generating dev-keys to sign android builds

All you need is an Android buildsystem (LineageOS is recommended)
NOTE: For Lineage 21 and newer, different steps are required.

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/emailAddress=android@android.com'

C: Country shortform

@mikecriggs
mikecriggs / 8GB_android-10_compilation-note
Created July 18, 2020 13:25
Workarounds for building Android 10 on 8GB RAM
Workarounds for building Q on 8GB RAM environment:
1. At the start of the build:
[ 99% 138/139] /mnt/ssd/aosip/out/soong/.bootstrap/bin/soong_build /mnt/ssd/aosip/out/soong/build.ninja
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments
sudo apt install zram-config for installing zram-config package
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot
After booting cat /proc/swaps to check if zram is enabled or not
@thedroidgeek
thedroidgeek / nokia-router-cfg-tool.py
Last active January 30, 2026 10:47
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
# in order to modify the full router configuration
# - Decrypt/encrypt the passwords/secret values present in the configuration