Skip to content

Instantly share code, notes, and snippets.

// Fork of https://github.com/WireGuard/wireguard-go/blob/master/tun/netstack/examples/http_server.go
// Usage:
// go run main.go privateKey peerPublicKey
// go run main.go YL7A9IqywiX7P4yMnsm1ocbOdgzIpaiyXa7JBPhcAFo= FiHXTbyGNzbXJDGhw15Laa3t+FHgUQMqcePTnA7wJzM=
package main
import (
"fmt"
"io"
"log"
@pereztr5
pereztr5 / keybase.md
Created June 30, 2015 00:43
keybase.md

Keybase proof

I hereby claim:

  • I am pereztr5 on github.
  • I am perezt (https://keybase.io/perezt) on keybase.
  • I have a public key whose fingerprint is 3F51 A461 EAD9 AA0D CF6C 9B43 A42D 7DC8 8726 BE48

To claim this, I am signing this object:

.constant TERM 0x4002
.address 0x2000
movi r2, '~'
!main
movi r1, ' '
!loop
STOR r1, [TERM]
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "miniat/miniat.h"
#define M_HIGH 1
#define M_LOW 0
typedef struct