Skip to content

Instantly share code, notes, and snippets.

@mi4code
mi4code / How to root Motorola Edge 40.md
Created October 19, 2023 17:22
How to root Motorola Edge 40

How to root Motorola Edge 40

Here is how I rooted my Motorola Edge 40 (can be applied on other Motorlola phones). Sharing because I had hard time finding good rooting guide. Hope you find this usefull.

Disclaimer

Do at your own risk and only if you know what are you doing.

Install drivers

NOTE: i got fastboot working after couple of tries, here is the process i expect to work

@mi4code
mi4code / How to drag and drop files in GTK4 and GTK3 in python.md
Created June 22, 2023 16:41
How to drag and drop files in GTK4 and GTK3 in python

How to drag and drop files in GTK4 and GTK3

Here is how to achieve drag and drop functionality in GTK in python. Recently I needed this for my project and it took me some time to find how to do that, so now I'm sharing it in case anyone needs it.

GTK4

Drag source implementation:

button = Gtk.Button(label="Drag File")
drag = Gtk.DragSource.new()