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 / .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>
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"]
*.mmdb
*.ndjson
.vscode
__pycache__
@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__
@yoursunny
yoursunny / ca-profile.data.base64
Last active May 15, 2024 01:00
yoursunny.com NDNts-CA profile
Bv0CTgcxCANuZG4IA2VkdQgEdWNsYQgIMjAyNDA1MTQIAkNBCARJTkZPNggAAAGPecMPJTIBABQL
GQQANu6AGgMyAQAV/QF9gRwHGggDbmRuCANlZHUIBHVjbGEICDIwMjQwNTE0gwCLBAB2pwCJ/QFT
Bv0BTwc8CANuZG4IA2VkdQgEdWNsYQgIMjAyNDA1MTQIA0tFWTgIAAYYc5pZpcAIB05ETkNFUlQ2
CAAAAY95wXC6FAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABI3u0b27LArW
hiJ0NTqgx9nlIw9DvBKH9MR/0cXAjYAGMc+oJ9JIrFGrSwHP4dcO2IaXxc0J3nA/1zXDZSi8kNIW
XhsBAxwvBy0IA25kbggDZWR1CAR1Y2xhCANLRVkICC8NI3gD5f9DCAJOQTYIAAABj1otjBr9AP0m
/QD+DzIwMjQwNTE1VDAwNTc0Nf0A/w8yMDI0MDgxM1QwMDU3NDUXRzBFAiEA7qTTJaKWgDf4nOLG
7Hy2G4krt4in8BuQ1v8Y+i0pLhECIHgDKgKOFtJQpIbpaTk31dTztKKysoeTROPjfuyhks40FkMb
AQMcPgc8CANuZG4IA2VkdQgEdWNsYQgIMjAyNDA1MTQIA0tFWTgIAAYYc5pZpcAIB05ETkNFUlQ2
CAAAAY95wXC6F0YwRAIgMKKJeh8N5oj3WDnWggkvszB5f8io4qihGQfavLt1zcYCIDUQ+6hKR23H
b = 0
m_bits = 5
m_max = (1<<m_bits)
for i in range(0,256):
e = i >> m_bits
m = i & ((1<<m_bits) - 1)
if e == 0:
x = (0 + m / m_max) * pow(2, 1 + b)
@yoursunny
yoursunny / index.d.ts
Created June 5, 2020 20:41
@types/root__asn1
// Type definitions for @root/asn1 1.0
// Project: https://git.coolaj86.com/coolaj86/asn1.js
// Definitions by: Junxiao Shi <https://github.com/yoursunny>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7
export {};
interface Element<V extends string|Uint8Array> {
type: number;