Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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