Skip to content

Instantly share code, notes, and snippets.

@GrahamCobb
GrahamCobb / btrfs-recv-test
Created September 6, 2016 16:56
Btrfs receive test
#!/bin/sh -x
# Reproduce btrfs receive exposure of files outside path
# Background: assume two clients Alice and Mallory are using btrfs send to
# send snapshots to a single server for backup. Each client has their
# own directory on the server and the server always receives into a path
# starting at their own directory. This script demostrates that Mallory can
# get access to Alice's files if he knows Alice's subvolume UUID.
CHROOT="-C"
@GrahamCobb
GrahamCobb / rclone.log
Last active July 15, 2016 08:41
rclone crash 15th July
...lots of stats removed...
2016/07/15 04:44:33
Transferred: 18.702 GBytes (877.377 kBytes/s)
Errors: 11
Checks: 1
Transferred: 48
Elapsed time: 6h12m30.7s
Transferring:
* DARsystemFull.4.dar.gpg: 59% done. avg: 275.5, cur: 68.4 kByte/s. ETA: 2h26m4s
@GrahamCobb
GrahamCobb / Humax HMT format
Last active December 15, 2023 07:35
Humax HDR Recorders file formats
Offset Size Content
------ ----- ---------------------------------- Header Block, Size 0x1004 (4100) bytes ---------------------------------------------
0x0000 2 byte 0x1701 Constant.
0x0000 126 byte All Nulls.Constant
------ ----- ---------------------------------- This next part is rewritten when playback completes/pauses
It seems to contain information about the recording
0x0080 string 254 byte max Recording file path e.g. "/media/sda1/My Video/" (not needed when creating hmt)
0x017F string 256 byte max Recording date-extended file name e.g. "The One Show_21010816_1817"
0x0280 4 byte 0x11223344 Recording start time (Epoch format)
0x0284 4 byte 0x11223344 Recording end time (Epoch format)