View .gitignore
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
*.mmdb | |
*.ndjson | |
.vscode | |
__pycache__ |
View .gitignore
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
/.vscode | |
/data |
View open.c
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 <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> |
View Dockerfile
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
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"] |
View .gitignore
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
*.mmdb | |
*.ndjson | |
.vscode | |
__pycache__ |
View .gitignore
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
*.mmdb | |
*.ndjson | |
.vscode | |
__pycache__ |
View ca-profile.data.base64
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
Bv0CNwcvCANuZG4IAm5sCAN0bm8ICDIwMjMwMjA5CAJDQQgESU5GTzYIAAABhjkaUtAyAQAUCxkE | |
ADbugBoDMgEAFf0BaYEaBxgIA25kbggCbmwIA3RubwgIMjAyMzAyMDmDAIsEAHanAIn9AUEG/QE9 | |
BzoIA25kbggCbmwIA3RubwgIMjAyMzAyMDkIA0tFWTgIAAX0Twh4iIAIB05ETkNFUlQ2CAAAAYY5 | |
GbxQFAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABIjd4Eo6R74WHeVgLQsW | |
z3wvKBpuqNsm4KeWqx/MC+ihkV7iWz6Kz/4O+rbFcw5dHTe2VFlA1GKmGH/KeQRgkHgWThsBAxwf | |
Bx0IA25kbggCbmwIA3RubwgDS0VZCAhs/9n91ULQsP0A/Sb9AP4PMjAyMzAyMTBUMDIxMzIx/QD/ | |
DzIwMjMwNTExVDAyMTMyMRdHMEUCIQDxy4p7957QgJ926gtozH5Vu0zDsz4x/oghHoaHb5vJsAIg | |
aDIlJO1KzitwVCccBui+rF7f8ZkZaY9PcSgiJue47zIWQRsBAxw8BzoIA25kbggCbmwIA3RubwgI | |
MjAyMzAyMDkIA0tFWTgIAAX0Twh4iIAIB05ETkNFUlQ2CAAAAYY5GbxQF0cwRQIhALpS+DIUgkHw | |
dhI4dCV1FGVMe1PHCZsUuSVbUTdBXXywAiA2j3kN2LZDDG9v/CwDrHOpJYLbfvAdX+q1R5u5iG5/ |
View time_tlv.py
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
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) |
View index.d.ts
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
// 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; |
NewerOlder