Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active September 21, 2023 22:13
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 dewomser/afc99781498dff9cc706b4d22324257e to your computer and use it in GitHub Desktop.
Save dewomser/afc99781498dff9cc706b4d22324257e to your computer and use it in GitHub Desktop.
FYI, when a website erases your text that you just spent an hour writing, you can use this little trick to recover it 99% of the time:
1. find the firefox pid
$ pgrep -l firefox
2. attach gdb to firefox and dump its core
$ sudo gdb -p <pid>
gcore firefox.dump
<this takes awhile>
quit
<firefox dies>
3. find your lost text in the coredump
$ strings firefox.dump | grep "a unique word/sentence from ur text"
i just did this today to recover a long post i wrote, and figured i'd show others!! :uxn:
@dewomser
Copy link
Author

Firefox. Verlorenen Text aus einem Formular mit einem Coredump wieder herstellen.
Wer sich das traut gewinnt (Zeit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment