This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.constant TERM 0x4002 | |
.address 0x2000 | |
movi r2, '~' | |
!main | |
movi r1, ' ' | |
!loop | |
STOR r1, [TERM] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include "miniat/miniat.h" | |
#define M_HIGH 1 | |
#define M_LOW 0 | |
typedef struct |