Skip to content

Instantly share code, notes, and snippets.

View mhdzli's full-sized avatar
💭
The most important and daring kind of freedom is to be what you really are.

M.Zeinali mhdzli

💭
The most important and daring kind of freedom is to be what you really are.
View GitHub Profile

Fix magisk stock backup does not exist

# put stock boot.img into /sdcard/boot.img

# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
@sochotnicky
sochotnicky / stdin
Created December 16, 2020 12:39
stdin
diff --git a/main.c b/main.c
index f979e24..2f54043 100644
--- a/main.c
+++ b/main.c
@@ -628,6 +628,7 @@ int main(int argc, char *argv[]) {
zwlr_layer_surface_v1_add_listener(
state.layer_surface, &layer_surface_listener, &state);
zwlr_layer_surface_v1_set_anchor(state.layer_surface, anchor);
+ zwlr_layer_surface_v1_set_size( state.layer_surface, 2560, 1440 );
zwlr_layer_surface_v1_set_margin(state.layer_surface,