Skip to content

Instantly share code, notes, and snippets.

#define _XOPEN_SOURCE 500
#include <limits.h>
#include <time.h>
#define MAX_INT(t) ((1UL << (CHAR_BIT * sizeof(t) - 1UL)) - 1UL)
int main(void)
{
struct timespec ts;
@emmiegit
emmiegit / scp-3133-declass.md
Last active March 7, 2019 00:42
SCP-3133 Declassification

SCP-3133 - An Email to O5-5

Item #: SCP-3133

Author: CannedBread

The first thing you notice about this article is that it takes the form of an email attachment, sent from Dr. Six of the Ethics Committee to O5-5. The file for SCP-3133 actually has two parts: Version A and Version B. A notice at the top of each version explains that any individual may only have 3133/A clearance or 3133/B clearance, but never give information to those with the other clearance, punishable by immediate death. Only Dr. Six is permitted to see/edit either copy. Also, as you would probably expect, it also says that the information in the other version is misleading by necessity.

Certainly an interesting setup. Let's start with Version A.

@emmiegit
emmiegit / scp-3597-declassification.md
Last active February 27, 2022 20:41
SCP-3597 declassification

SCP-3597: Maladroit

Item #: SCP-3597

Object Class: Euclid

Author: aismallard

Disclaimer: I am the author in question.

Keybase proof

I hereby claim:

  • I am ammongit on github.
  • I am ammonkey (https://keybase.io/ammonkey) on keybase.
  • I have a public key whose fingerprint is 060D 9A2C 653E 9A31 6571 6C7D DE0E 2BD0 2C3C F0C7

To claim this, I am signing this object:

@emmiegit
emmiegit / populate_helium.c
Created April 26, 2017 18:59
Fill a Helium datastore with items to be read
#include <he.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#define URL "he://./path_to_dev_here"
#define ITEMS 100
@emmiegit
emmiegit / many_updates.c
Last active April 4, 2017 18:45
Continuously run updates on a datastore
#define _XOPEN_SOURCE 500
#include <he.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define THREADS 32
@emmiegit
emmiegit / gc_test.c
Last active March 31, 2017 21:28
Helium garbage generator
#define _XOPEN_SOURCE 500
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <pthread.h>