Skip to content

Instantly share code, notes, and snippets.

View SegFault42's full-sized avatar
🍑
Pickup Artist !

SegFault42 SegFault42

🍑
Pickup Artist !
View GitHub Profile
@SegFault42
SegFault42 / main.go
Created April 12, 2022 07:56
Migration SQL to Firestore
package main
import (
"context"
"encoding/json"
"log"
firebase "firebase.google.com/go"
"google.golang.org/api/option"
)

Keybase proof

I hereby claim:

  • I am segfault42 on github.
  • I am segfault42 (https://keybase.io/segfault42) on keybase.
  • I have a public key ASDIcKcV6KY-A_OBUVLOnr0OOTOi7OKMZa_nCvwzvTwydwo

To claim this, I am signing this object:

@SegFault42
SegFault42 / stress_test.c
Created June 26, 2017 18:02
stress_test.c
/*#include "./include/malloc.h"*/
#include <time.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#define RAND_TINY random = rand() % 64 + 1;
#define RAND_SMALL random = rand() % 960+ 65;
#define RAND_LARGE random = rand() % 2000 + 1025;