Skip to content

Instantly share code, notes, and snippets.

rootmos / Makefile
Created May 24, 2019
How to write a Makefile :D
View Makefile
#Make Gustav Make a Makefile
rootmos /
Last active May 22, 2019
Usage: python -c 'print("hello?")'
set -o nounset -o pipefail -o errexit
trap "rm -f $TRACE" EXIT
EXEC=$(which "$1")
shift 1
View index.js
var http = require('http');
var request = require('request');
http.createServer(function (req, res) {
request('', function (error, response, body) {
View address
set -o errexit
set -o pipefail
SCRIPT_DIR=$(readlink -f $0 | xargs dirname)
owner "$1" | openssl dgst -binary -sha256 | bin_to_base64_url
View gist:d8216c6f62a5b081bac0f664ac7ec724
### Keybase proof
I hereby claim:
* I am rootmos on github.
* I am rootmos ( on keybase.
* I have a public key whose fingerprint is 0F8E EB98 5F9E E05B D35B AD03 BB43 FAF5 535B 14B7
To claim this, I am signing this object:
View gist:3f6b8214e1bbc4a7c8923fd2f3a2d0f9
POST /tx HTTP/1.1
User-Agent: HTTPie/0.9.8
Accept-Encoding: gzip, deflate
Accept: application/json, */*
Connection: keep-alive
Content-Type: application/json
upvestMsgId: rootmos-269f1505-3894-464d-beea-fdd4dbeea19d
Content-Length: 315
Host: walletd.unstable.svc.cluster.local
rootmos /
Created Jan 25, 2018
Scripts for running a Cassandra cluster using Docker
docker ps --filter="name=cassandra" --format="{{.Names}}" | xargs docker update --cpus $1
View sk.scm
; Regular SKI evaluator
(define eval-sk
(lambda (es)
; drop parenthesis (left-associativity)
[(and (list? es) (positive? (length es)) (list? (car es)))
(eval-sk (append (car es) (cdr es)))]
; K
[(and (list? es) (>= (length es) 3) (eq? (car es) 'K))
(eval-sk (cons (cadr es) (cdddr es)))]