Skip to content

Instantly share code, notes, and snippets.

@owulveryck
Created April 6, 2021 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owulveryck/ea9c768da783378ca6e10cd311ce0e16 to your computer and use it in GitHub Desktop.
Save owulveryck/ea9c768da783378ca6e10cd311ce0e16 to your computer and use it in GitHub Desktop.
screenshot on remarkable
#!/bin/sh
(
cat << \EOF
dd if=/proc/$(pidof xochitl)/mem count=2628288 bs=1 skip=$((16#$(grep '/dev/fb0' /proc/$(pidof xochitl)/maps | sed 's/.*\-\([0-9a-f]*\) .*/\1/')))
EOF
) | ssh root@IP_OF_REMARKABLE | convert -depth 8 -size 1872x1404+0 gray:- shot.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment