Skip to content

Instantly share code, notes, and snippets.

@ExecThTs
ExecThTs / android-backup-apk-and-datas.md
Last active February 25, 2023 20:09 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@ExecThTs
ExecThTs / transition_sidebar.md
Last active April 6, 2025 22:42
Expand/collapse Firefox sidebar on hover

Originally written for mbnuqw/sidebery, a sidebar tab list extension. Requires a custom userChrome.css to be set up.

The following css will collapse and expand the sidebar when the mouse is hovered (or not):

/*transition_sidebar.css*/

#sidebar {
  transition: width 128ms ease !important;
 transition-delay: 128ms !important;
@ExecThTs
ExecThTs / watermark.sh
Created July 7, 2025 22:23
Add a watermark to an image specified as argument. Set size of overlay image in % relative to original image.
echo "processing $1"
watermarklocation=/home/exec/Pictures/watermark.svg
originalsize=$(identify -ping -format '%w %h' "$1")
targetpercentage=25
watermarkbox=$(awk "BEGIN {print int(( ${originalsize% *} + ${originalsize#* } ) / 2 * ( $targetpercentage * 0.01 ) + 0.5)}" )
magick composite \
-background none \
\( "$watermarklocation" -geometry "$watermarkbox" \) \