import (
_ "net/http/pprof"
"net/http"
)
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
| #for not running docker, use save: | |
| docker save <dockernameortag> | gzip > mycontainer.tgz | |
| #for running or paused docker, use export: | |
| docker export <dockernameortag> | gzip > mycontainer.tgz | |
| #load | |
| gunzip -c mycontainer.tgz | docker load |
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 ( | |
| "io" | |
| "log" | |
| "os" | |
| "github.com/gin-gonic/gin" | |
| ) |
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
| TARGET = main.test | |
| CFLAGS += -std=c11 -I. -Os -pthread | |
| LDFLAGS += | |
| CPPFLAGS += -Wall | |
| all: main.o adding.o | |
| $(CC) -o $(TARGET) $? $(LDFLAGS) $(LDLIBS) | |
| test: |
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" | |
| ) | |
| func tester(input [9]byte) bool { | |
| return false | |
| } |
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
| Go 19 hrs 30 mins ██████████▋░░░░░░░░░░ 50.9% | |
| YAML 12 hrs 38 mins ██████▉░░░░░░░░░░░░░░ 33.0% | |
| Other 2 hrs 1 min █░░░░░░░░░░░░░░░░░░░░ 5.3% | |
| Docker 1 hr 35 mins ▊░░░░░░░░░░░░░░░░░░░░ 4.1% | |
| Bash 55 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.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
| CCFiles := $(wildcard *.cc) | |
| .PHONY: cc | |
| cc: $(CCFiles) | |
| .PHONY: $(CCFiles) | |
| $(CCFiles): | |
| @echo Running `echo $@ | cut -d. -f1`: | |
| @echo | |
| @$(CXX) -std=c++17 -lm -Os -g3 -fsanitize=address,signed-integer-overflow \ |
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
| #include <getopt.h> | |
| #include <regex.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| void showHelp(char *biname) { | |
| printf("%s [-l length] [-f 'regex'] [-n]\n", biname); | |
| printf(" -l, --length\n"); | |
| printf(" Password length\n"); |
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
| // This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "io/ioutil" |
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 ( | |
| "crypto/sha1" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| "strings" |