Skip to content

Instantly share code, notes, and snippets.

View corvuscrypto's full-sized avatar

Clifford R. corvuscrypto

  • Stockholm, Sweden
View GitHub Profile
@corvuscrypto
corvuscrypto / main.go
Last active October 17, 2024 15:30
Golang fork + prctl PDEATHSIG control example
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"strconv"
"syscall"
)
@corvuscrypto
corvuscrypto / graph_vis.js
Last active October 17, 2017 13:48
file for the graph visualisation included in one of my blog posts
/**
I'll let you use my code for manipulation and reposting on the condition that you listen to my tale.
FADE IN:
EXT. UNNAMED CITY - DAY
The hustle and bustle is a symphony of progress.
We pan past windows, each of which contain a different story,
to find JACEY LAKIMS, 28... hot, but doesn't know it.
@corvuscrypto
corvuscrypto / peg_solver.py
Last active February 16, 2016 17:49
Peg-game solver based on a greedy probabilistic algorithm that came straight out of your worst efficiency nightmares
import random
import copy
# 0
# 1 2
# 3 4 5
# 6 7 8 9
# 10 11 12 13 14
#
#
START = 0