import (
_ "net/http/pprof"
"net/http"
)
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
[font] | |
normal = { family = "monaco", style = "Regular" } | |
# normal = { family = "Hack Nerd Font", style = "Regular" } | |
size = 16 | |
[terminal.shell] | |
program = "/bin/zsh" | |
# args = ["-l", "-c", "zellij attach --index 0 || zellij"] | |
args = ["-l"] |
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
# Redis Cheatsheet | |
# All the commands you need to know | |
redis-server /path/redis.conf # start redis with the related configuration file | |
redis-cli # opens a redis prompt | |
# Strings. |
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 ( | |
"crypto/sha1" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"strings" |
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
// 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 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 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 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 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 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: |
NewerOlder