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 <err.h> | |
#include <fcntl.h> | |
#include <limits.h> | |
#include <signal.h> | |
#include <stddef.h> | |
#include <string.h> | |
#include <sysexits.h> | |
#include <unistd.h> | |
#include <stdlib.h> |
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
hello |
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
esphome: | |
name: epaper | |
friendly_name: epaper | |
esp8266: | |
board: d1_mini | |
# Enable logging | |
logger: |
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 <Arduino.h> | |
#include <GxEPD2_3C.h> | |
#include <Fonts/FreeMonoBold9pt7b.h> | |
GxEPD2_3C<GxEPD2_290_Z13c, GxEPD2_290_Z13c::HEIGHT> pdisplay(GxEPD2_290_Z13c(/*CS=D8*/ D8, /*DC=D3*/ D0, /*RST=D4*/ D1, /*BUSY=D2*/ D2)); // GDEH029Z13 128x296, UC8151D | |
const char HelloWorld[] = "Hello World!"; | |
void setup() { | |
Serial.begin(115200); |
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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "allwinner,sun50i-h5"; | |
fragment@0 { | |
target = <&uart1>; | |
__overlay__ { | |
status = "okay"; |
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
host = unix.gethostname() | |
c1, c2, c3 = string.byte(GetRandomBytes(1)), string.byte(GetRandomBytes(1)), string.byte(GetRandomBytes(1)) | |
function OnHttpRequest() | |
Write([[<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello World!</title> | |
</head> |
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
const std = @import("std"); | |
pub fn build(b: *std.build.Builder) void { | |
// Standard target options allows the person running `zig build` to choose | |
// what target to build for. Here we do not override the defaults, which | |
// means any target is allowed, and the default is native. Other options | |
// for restricting supported target set are available. | |
const target = b.standardTargetOptions(.{}); | |
// Standard release options allow the person running `zig build` to select |
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
# To unbundle, run this file | |
echo tis/as.y | |
sed 's/.//' >tis/as.y <<'//GO.SYSIN DD tis/as.y' | |
-%{ | |
-#include <u.h> | |
-#include <libc.h> | |
-#include <bio.h> | |
-#include <ctype.h> | |
- | |
-#include "tis.h" |
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
# local DNS fuckery | |
do-not-query-localhost: no | |
private-domain: "home.arpa" | |
local-zone: "0.0.10.in-addr.arpa." nodefault | |
domain-insecure: "home.arpa" | |
domain-insecure: "0.0.10.in-addr.arpa" | |
private-address: 10.0.0.0/8 | |
stub-zone: |
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
package main | |
import ( | |
"fmt" | |
"github.com/miekg/dns" | |
) | |
func negrcode(w dns.ResponseWriter, r *dns.Msg) { | |
m := new(dns.Msg) |
NewerOlder