Skip to content

Instantly share code, notes, and snippets.

View yoursunny's full-sized avatar
📟

Junxiao Shi yoursunny

📟
View GitHub Profile
@yoursunny
yoursunny / 1.xlsx
Last active April 16, 2024 20:53
NDN global testbed topology design 20240330
@yoursunny
yoursunny / ca-profile.data.base64
Last active March 18, 2024 00:33
yoursunny.com NDNts-CA profile
Bv0CTQcxCANuZG4IA2VkdQgEdWNsYQgIMjAyNDAzMTcIAkNBCARJTkZPNggAAAGOTvmavzIBABQL
GQQANu6AGgMyAQAV/QF8gRwHGggDbmRuCANlZHUIBHVjbGEICDIwMjQwMzE3gwCLBAB2pwCJ/QFS
Bv0BTgc8CANuZG4IA2VkdQgEdWNsYQgIMjAyNDAzMTcIA0tFWTgIAAYT5Huv4HgIB05ETkNFUlQ2
CAAAAY5O+Rj3FAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGXv+X0N8ht3
13XApCkFLJJYqJLR6nO2cZTpzPSPxlrTV8SC8zxy6Zk6+KcBJEte48xrp5UzI8PnRUkgu4doS2kW
XhsBAxwvBy0IA25kbggDZWR1CAR1Y2xhCANLRVkICPd+N7wo5a3sCAJOQTYIAAABjgFpVbX9AP0m
/QD+DzIwMjQwMzE4VDAwMzIwNf0A/w8yMDI0MDYxNlQwMDMyMDUXRjBEAiALiyMD+IXnJWHIPl8Z
j6AELHthhhBSwmiFp/uyu/FVkAIgRoTRGfFAybEPXFsM2DxnQ4jw3pQioT8bO+x08aPPzgIWQxsB
Axw+BzwIA25kbggDZWR1CAR1Y2xhCAgyMDI0MDMxNwgDS0VZOAgABhPke6/geAgHTkROQ0VSVDYI
AAABjk75GPcXRjBEAiA9k3AGUDvpXnCR0fJNmtP7yxYs0dWSt/dNFzNbUo4qjAIgNcggrrRaal+d
FROM golang:1.16 AS build
WORKDIR /app
COPY . .
RUN env CGO_ENABLED=0 go build -o summer-host-storage main.go
FROM scratch
COPY --from=build /app/summer-host-storage /summer-host-storage
ENTRYPOINT ["/summer-host-storage"]
CMD ["-listen=:8000"]
// https://yoursunny.com/t/2018/PacketDump/
#include <cassert>
#include <ESP8266WiFi.h>
#include <lwip/netif.h>
// #include <user_interface.h>
#include "PacketParser.hpp"
const char* WIFI_SSID = "my-ssid";
const char* WIFI_PASS = "my-pass";
@yoursunny
yoursunny / .gitignore
Last active March 19, 2022 05:34
NDN Video Streaming on the ndn6 Network https://yoursunny.com/t/2021/NDN-video-ndn6/
*.mmdb
*.ndjson
.vscode
__pycache__
@yoursunny
yoursunny / .gitignore
Last active September 10, 2021 14:39
"freewifi" via ESP8266 Captive Portal https://yoursunny.com/t/2017/freewifi/
/.vscode
/data
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <limits.h>
#include <sys/stat.h>
#include <unistd.h>
*.mmdb
*.ndjson
.vscode
__pycache__
@yoursunny
yoursunny / EmojiTetra.ino
Last active February 24, 2021 14:15
Watch @EmojiTetra Live on ESP32 OLED Display https://yoursunny.com/t/2018/EmojiTetra-OLED/
// Watch @EmojiTetra Live on ESP32 OLED Display
// https://yoursunny.com/t/2018/EmojiTetra-OLED/
#include <HTTPClient.h>
#include <U8g2lib.h> // https://github.com/olikraus/U8g2_Arduino/tree/e4178df6b8c69f1880d6d44719a286540e9e94a5
#include <WiFi.h>
const char* WIFI_SSID = "my-wifi";
const char* WIFI_PASS = "my-password";
@yoursunny
yoursunny / .gitignore
Last active February 4, 2021 03:10
The Reality of NDN Video Streaming https://yoursunny.com/t/2021/NDN-video-reality/
*.mmdb
*.ndjson
.vscode
__pycache__