GPG and sops by mozilla
Create .sops.yaml
. More info https://github.com/mozilla/sops#using-sops-yaml-conf-to-select-kms-pgp-for-new-files
creation_rules:
CHANGELOG ?= docker run --rm \ | |
-v ${PWD}:/workdir \ | |
-w /workdir \ | |
quay.io/git-chglog/git-chglog | |
PROTOC ?= docker run --rm -u ${shell id -u} \ | |
-v ${PWD}:/defs namely/protoc-all:1.51_1 \ | |
-l go \ | |
--with-validator \ | |
-o ./ \ |
/* | |
* m1racle-poc: a basic proof of concept for the M1RACLES vulnerability in the Apple M1. | |
* | |
* This program allows you to read and write the state of the s3_5_c15_c10_1 CPU register. | |
* | |
* Please visit m1racles.com for more information. | |
* | |
* Licensed under the MIT license. | |
*/ |
mux.HandleFunc("/debug/pprof/", pprof.Index) | |
mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) | |
mux.HandleFunc("/debug/pprof/profile", pprof.Profile) | |
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) | |
mux.HandleFunc("/debug/pprof/trace", pprof.Trace) | |
mux.Handle("/debug/pprof/block", pprof.Handler("block")) | |
mux.Handle("/debug/pprof/heap", pprof.Handler("heap")) | |
mux.Handle("/debug/pprof/goroutine", pprof.Handler("goroutine")) | |
mux.Handle("/debug/pprof/threadcreate", pprof.Handler("threadcreate")) | |
mux.Handle("/debug/vars", expvar.Handler()) |
GPG and sops by mozilla
Create .sops.yaml
. More info https://github.com/mozilla/sops#using-sops-yaml-conf-to-select-kms-pgp-for-new-files
creation_rules:
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
"go.opentelemetry.io/contrib/propagators/b3" |
# encode
echo 'foo: "bar", nested: { obj: {foo: "bar"}}' | protoc \
--proto_path=${PWD} \
--encode="package.full.naem.v1.MessageFooBar" \
${PWD}/path/to/file.proto > message.bin
# decode
cat message.bin | protoc \
--proto_path=${PWD} \
USDT can be different
0x...
0x...
T...
(?)BEP20 and BEP20 based on ETH. This means that the BSC address is the same as in ETH only on different networks
Following example code in Go (use playground execute result with caution)
A simple script that returns the network interface name on the host by the container name. Based on https://github.com/cslev/find_veth_docker/blob/master/find_veth_docker.sh
./container_netiface.sh <containername>
veth63443be
https://play.golang.org/p/xJN8MHWIHwI
Resolve bash/shell variables. Format variables as in bash\shell
TODO:
${A:-default value}