Skip to content

Instantly share code, notes, and snippets.

View sandsmark's full-sized avatar
m̵̧̤̦͖͖̆̍̽ͫ͘a̡͇̖̖̳͓͚̪͉̐̂̅ͦ̚͟͡r̵̘̖̜̀̓̀͗̽ͮ̐͆̓͢͞t͆ͩ̐ͭͥ̎̊͏̙͍i̥̜͗̓͗̀͑ͮ͋ͤͅņ̺̘̞̙̲ͯ̂ͫ̚

martin sandsmark

m̵̧̤̦͖͖̆̍̽ͫ͘a̡͇̖̖̳͓͚̪͉̐̂̅ͦ̚͟͡r̵̘̖̜̀̓̀͗̽ͮ̐͆̓͢͞t͆ͩ̐ͭͥ̎̊͏̙͍i̥̜͗̓͗̀͑ͮ͋ͤͅņ̺̘̞̙̲ͯ̂ͫ̚
  • Norway
View GitHub Profile
@sandsmark
sandsmark / api.txt
Last active January 10, 2023 05:47
reMarkable USB "restish" API
Enable in Settings -> Storage.
Listing documents (returns json blob): http://10.11.99.1/documents/
Listing documents in folder: http://10.11.99.1/documents/${folder_id}/
Getting thumbnail for last opened page: http://10.11.99.1/thumbnail/${document_id}
Upload/import (standard POST call, with 'file' parameter, accepts pdfs and epubs): http://10.11.99.1/upload/
Download (svg or zip with pngs): http://10.11.99.1/download/${document_id}/{pdf,png}
All other requests are served from /usr/share/remarkable/webui/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
int main(int argc, char *argv[])
{
int outfds[2];
int infds[2];