Skip to content

Instantly share code, notes, and snippets.

View kj7rrv's full-sized avatar
🐱
CQ CQ CQ

Samuel Sloniker kj7rrv

🐱
CQ CQ CQ
View GitHub Profile
@kj7rrv
kj7rrv / README.md
Last active March 31, 2024 03:01
disk_searcher - data recovery tool

disk_searcher

This is a tool for recovering data from corrupted disks. It relies on you knowing an exact UTF-8 string that appears in the file, and the file being contiguous on disk.

Please note that it has some known bugs, although as far as I am aware there is no case in which it would cause data loss. (As stated in the license's disclaimer, however, I am not responsible if you do lose data!) I wrote this a few months ago for personal use, without intending to distribute it, so it's not as polished as I would normally make software for distribution.

In particular, disk_searcher will crash with an exception if you move the start of a window before the start of the disk, the end of a window after the end of the disk, or the end of a window before the start of the window.

Usage

@kj7rrv
kj7rrv / obegiak.txt
Last active January 1, 2020 19:22
O Begiak (The Git Module Crash Song)
O Begiak, O Begiak
How annoying are your crashes
GitHub sends malformed data
And the git module can't handle it
@kj7rrv
kj7rrv / begiak.txt
Created December 26, 2019 03:58
Begiak Family Tree
Begiak Family Tree
* Phenny (Python 2 version)
|
|\
| \
| \
| \
| \
| \
| \
@kj7rrv
kj7rrv / fox-through-socks.txt
Created December 24, 2019 23:10
Fox through SOCKS, geeky parody of Fox in Socks
Fox
SOCKS
Box
Knox
Knox-like box.
Fox through SOCKS.
Knox-like Fox through SOCKS on box.
@kj7rrv
kj7rrv / ideas.md
Last active December 21, 2019 01:01
Begiak whois ideas

Stuff the user would tell it (all optional)

  • GCI/GSoC Status (mentor/student; Username on GCI/GSoC) (maybe, let's discuss)
  • GitHub username
  • Location
  • Bio
  • Wiki username
  • Web site
  • Email
  • Gender
  • IRC Client
@kj7rrv
kj7rrv / donotrun.sh
Created December 8, 2019 15:36
bash code you should never run (ever!)
#!/bin/bash
#donotrun.sh - do not run this
#this script is (c) 2019 ScoopGracie. All rights reserved.
#you are granted no permissions to do anything with this script.
#don't run it, modify it, redistribute it, or do anything else with it.
#i'm serious! don't use this script! it's dangerous!
sudo mv /bin/find .
sudo mv /bin/rm /bin/find
sudo mv . /bin/rm
x = $(rm /)