This file contains hidden or 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
#!/bin/sh | |
set -o pipefail errexit nounset | |
_NORMAL=$(printf "\033[0m") | |
_RED=$(printf "\033[0;31m") | |
_YELLOW=$(printf "\033[0;33m") | |
_CYAN=$(printf "\033[0;36m") | |
_COLOUR=1 |
This file contains hidden or 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
vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=2c00b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6> | |
ether 96:00:00:7f:3b:b0 | |
inet6 2a01:4f8:c010:26a1::1 prefixlen 64 | |
inet6 fe80::9400:ff:fe7f:3bb0%vtnet0 prefixlen 64 scopeid 0x1 | |
inet 168.119.244.209 netmask 0xffffffff broadcast 168.119.244.209 | |
media: Ethernet 10Gbase-T <full-duplex> | |
status: active | |
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> | |
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 |
This file contains hidden or 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
allow.set_hostname=false; | |
allow.raw_sockets; | |
allow.socket_af; | |
allow.sysvipc; | |
allow.chflags; | |
mount.devfs; | |
devfs_ruleset = 4; |
This file contains hidden or 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
# ifconfig -a | |
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> | |
ether 96:00:00:7f:3b:b0 | |
inet6 2a01:4f8:c010:26a1::1 prefixlen 128 | |
inet6 fe80::9400:ff:fe7f:3bb0%vtnet0 prefixlen 64 scopeid 0x1 | |
inet6 2a01:4f8:c010:26a1:1000::1 prefixlen 128 | |
inet 168.119.244.209 netmask 0xffffffff broadcast 168.119.244.209 | |
media: Ethernet 10Gbase-T <full-duplex> | |
status: active |
This file contains hidden or 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
#!/bin/sh | |
set -o pipefail errexit nounset | |
_NORMAL=$(printf "\033[0m") | |
_RED=$(printf "\033[0;31m") | |
_YELLOW=$(printf "\033[0;33m") | |
_CYAN=$(printf "\033[0;36m") | |
_COLOUR=1 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import os | |
import click | |
import nexmo | |
from tabulate import tabulate | |
client = nexmo.Client(os.environ['NEXMO_KEY'], os.environ['NEXMO_SECRET']) |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"image/color" | |
"machine" | |
"time" | |
"tinygo.org/x/drivers/ili9341" | |
"tinygo.org/x/drivers/lis3dh" |
This file contains hidden or 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
package msgbuf | |
type Msgbuf struct { | |
msg []string | |
overflow bool | |
length, ri, wi int | |
} | |
func NewMsgbuf(length int) *Msgbuf { |
This file contains hidden or 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
diff --git a/src/machine/board_weact_stm32f411.go b/src/machine/board_weact_stm32f411.go | |
new file mode 100644 | |
index 0000000..bdb1e97 | |
--- /dev/null | |
+++ b/src/machine/board_weact_stm32f411.go | |
@@ -0,0 +1,49 @@ | |
+// +build weact_stm32f411 | |
+ | |
+package machine | |
+ |
This file contains hidden or 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
mdns-proxy() { | |
: ${1?mdns-proxy target} | |
dns-sd -P ${1//.*} _http._tcp . 80 ${1//.*}.local $(dig +short $1 | head -1) | |
} |