Skip to content

Instantly share code, notes, and snippets.

View simonhf's full-sized avatar

Simon Hardy-Francis simonhf

View GitHub Profile
@simonhf
simonhf / persistent_pipes_linux.md
Last active September 10, 2015 17:26 — forked from CAFxX/persistent_pipes_linux.md
Persistent pipes/circular buffers for Linux

Persistent "pipes" in Linux

In a project I'm working on I ran into the requirement of having some sort of persistent FIFO buffer or pipe in Linux, i.e. something file-like that could accept writes from a process and persist it to disk until a second process reads (and acknowledges) it. The persistence should be both across process restarts as well as OS restarts.

AFAICT unfortunately in the Linux world such a primitive does not exist (named pipes/FIFOs do not persist

@simonhf
simonhf / -
Last active August 29, 2015 14:09 — forked from anonymous/-
MongoDB shell version: 2.6.5
connecting to: lichess
[
{
"_id" : "rynNl407",
"p1" : {
"ai" : 8
},
"ps" : BinData(0,"AAABAGBgBmYAAAAADQbFAAAADg5gAAAAAOkA4LAAAAA="),
"s" : 31,