Skip to content

Instantly share code, notes, and snippets.

#Invoke-Expression (&starship init powershell)
Import-Module oh-my-posh
Import-Module PSReadLine
Import-Module -Name Terminal-Icons
#oh-my-posh init pwsh | Invoke-Expression
oh-my-posh init pwsh --config C:\Users\yeahg\AppData\Local\oh-my-posh\themes/catppuccin_macchiato.omp.json | Invoke-Expression
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
modified
general.smoothScroll.currentVelocityWeighting: 0
general.smoothScroll.mouseWheel.durationMaxMS: 150
general.smoothScroll.stopDecelerationWeighting; 0.82
mousewheel.min_line_scroll_amount: 25
general.smoothScroll.msdPhysics.enable: true
default:
general.smoothScroll.currentVelocityWeighting: 0.25
general.smoothScroll.mouseWheel.durationMaxMS: 200
@Systemad
Systemad / catppuccin_macchiato.omp.json
Created December 27, 2022 00:00
oh my posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"os": "#ACB0BE",
"closer": "p:os",
"pink": "#F5BDE6",
"lavender": "#B7BDF8",
"blue": "#8AADF4"
},
"blocks": [
@Systemad
Systemad / model.json
Created March 2, 2021 14:12
model.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "MQTT Configuration",
"description": "",
"type": "object",
"properties": {
"topicPattern": {
"title": "Topic that will be used when publishing messages on DNX MQTT Server.",
"type": "string",
"minimum": 3,
@Systemad
Systemad / partitionmounts
Last active February 12, 2021 21:45
Partition mounts 7T PRO OOS11
### Log from TWRP
Partition mounts including dynamic partition. Log is taken directly from TWRP, bootin on OOS 11 Beta on OnePlus 7T Pro.
-------------------------------------------------------------------------------------------------------------------------
Partition Logs:
/system_root | /dev/block/dm-4 | Size: 1287MB Used: 1283MB Free: 3MB Backup Size: 1283MB
Flags: Can_Be_Mounted IsPresent SlotSelect Mount_Read_Only
Primary_Block_Device: /dev/block/dm-4
@Systemad
Systemad / fastbootdrescue.txt
Last active November 4, 2023 21:35
FastbootD Rescue
FastbootD Rescue:
All commands: https://source.android.com/devices/bootloader/fastbootd
### Deleted logical partition
In case you "accidentally" delete a logical partition, you won't be able to flash anything on that slot
since the partition don't exist.
In order to restore the slot to be functional you need to manually create a the new deleted logcal parition
@Systemad
Systemad / dm-verity
Last active January 31, 2024 10:59
Remove dm-verity from boot image
Credit: thohac@xda
I took the tools/arm/magiskboot from that git and did it manually.
Here are my steps.
put magiskboot in /data/local/bin
chmod +x /data/local/bin/magiskboot.
put unpacked boot.img on the device and patch with magisk. rename back to boot.img
mkdir unpacked; cd unpacked #make a working dir and switch to it
@Systemad
Systemad / modify dynamic
Last active July 13, 2023 19:38
Make Dynamic Partition Read/Write
NOTE: I have only tested this on my OnePlus 7T Pro running OxygenOS11 Beta (Android 11).
Be sure to know what you're doing and proceed at your own risk.
Below are two guides on how to make dynamic partition R/W, this also works for stock.
Unlike some other guides out there, this is without the need of unpacking/repacking the super partitions.
Although, the second guide does require (a properly) TWRP.
Note: If you get qualcomm crash dump complaining about dm-verity, flash magisk.
For Guide 2, you need to use a personal ***test*** TWRP build of mine. Only tested on 7T Pro running OOS11.
Starting TWRP 3.5.0_10-0-a66a33a5 on Thu Sep 3 03:07:34 1970
(pid 587)
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
TW_NO_USB_STORAGE := true
TW_HAS_EDL_MODE := true
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness
I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 420
[ 0.000718] I:[libfs_mgr]dt_fstab: Skip disabled entry for partition vendor
[ 0.000748] I:[libfs_mgr]dt_fstab: Skip disabled entry for partition odm
[ 0.000750] recovery filesystem table
[ 0.000751] =========================
[ 0.000752] 0 /system ext4 system_a 0
[ 0.000753] 1 /product ext4 product_a 0
[ 0.000754] 2 /vendor ext4 vendor_a 0
[ 0.000755] 3 /odm ext4 odm_a 0
[ 0.000756] 4 /metadata ext4 /dev/block/by-name/metadata 0
[ 0.000757] 5 /data ext4 /dev/block/bootdevice/by-name/userdata 0