Skip to content

Instantly share code, notes, and snippets.

View kwilczynski's full-sized avatar
:octocat:

Krzysztof Wilczyński kwilczynski

:octocat:
View GitHub Profile
@kwilczynski
kwilczynski / script.sh
Last active June 24, 2024 00:49
Build ccache
cd ./ccache/build
make clean
export PATH='/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
ccmake -DDEPS=DOWNLOAD -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DREDIS_STORAGE_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc ..
make -j$(nproc)
make DESTDIR='/tmp/ccache' PREFIX='/usr' install
docker.io/library/busybox:latest
{
"status": {
"id": "ba5dc23f65d4cc4a4535bce55cf9e63b068eb02946e3422d3587e8ce803b6aab",
"repoTags": [
"docker.io/library/busybox:latest"
],
"repoDigests": [
"docker.io/library/busybox@sha256:4be429a5fbb2e71ae7958bfa558bc637cf3a61baf40a708cb8fff532b39e52d0",
@kwilczynski
kwilczynski / Makefile
Created February 20, 2024 11:19
Simple Linux kernel module to toggle running process state between "D" (uninterruptible) and interruptible
ccflags-y := -DDEBUG -Wfatal-errors
ifneq ($(KERNELRELEASE),)
obj-m += state-toggle.o
else
BUILD_KERNEL ?= /lib/modules/$(shell uname -r)/build
default:
$(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) modules
endif
openshift-machine-api cluster-autoscaler-operator-58fb97bc76-bqfbs cluster-autoscaler-operator I0116 11:12:17.588634 1 status.go:450] No ClusterAutoscaler. Reporting available.
openshift-machine-api cluster-autoscaler-operator-58fb97bc76-bqfbs cluster-autoscaler-operator I0116 11:12:17.588747 1 status.go:244] Operator status available: at version 4.14.4
openshift-kube-scheduler openshift-kube-scheduler-kwilczynski-dev-spqk6-master-2.c.openshift-gce-devel.internal kube-scheduler I0116 11:12:17.589871 1 eventhandlers.go:118] "Add event for unscheduled pod" pod="openshift-monitoring/node-exporter-9cvc2"
openshift-kube-scheduler openshift-kube-scheduler-kwilczynski-dev-spqk6-master-2.c.openshift-gce-devel.internal kube-scheduler I0116 11:12:17.589923 1 scheduling_queue.go:419] "Pod moved to an internal scheduling queue" pod="openshift-monitoring/node-exporter-9cvc2" event="PodAdd" queue="Active"
openshift-kube-scheduler openshift-kube-scheduler-kwilczynski-dev-spqk6-master-0.c.openshift-gc
kube-system kube-apiserver-master-node kube-apiserver 00000010 75 72 63 65 51 75 6f 74 61 4c 69 73 74 12 0c 0a |urceQuotaList...|
kube-system kube-apiserver-master-node kube-apiserver 00000020 0a 0a 00 12 04 32 38 37 39 1a 00 1a 00 22 00 |.....2879....".|
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037670 1 eventhandlers.go:126] "Add event for unscheduled pod" pod="default/test-cj4n2"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037703 1 scheduling_queue.go:575] "Pod moved to an internal scheduling queue" pod="default/test-cj4n2" event="PodAdd" queue="Active"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037736 1 schedule_one.go:85] "About to try and schedule pod" pod="default/test-cj4n2"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.037742 1 schedule_one.go:98] "Attempting to schedule pod" pod="default/test-cj4n2"
kube-system kube-scheduler-master-node kube-scheduler I0117 07:18:07.
@kwilczynski
kwilczynski / tags.txt
Created October 27, 2023 11:04
Linux kernel preferred commit tag order
Fixes:
Closes:
Suggested-by:
Link:
Reported-by:
Tested-by:
Co-developed-by: (co-author)
Signed-off-by: (co-author)
Signed-off-by: (author)
Signed-off-by: (chain)
package main
import (
"testing"
)
func A() {
m := map[int][]string{}
for i, _ := range []int{1, 2, 3} {
@kwilczynski
kwilczynski / main.go
Created June 12, 2023 12:26
ZooKeeper TLS in Go example
package main
import (
"crypto/dsa"
"crypto/ecdsa"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"encoding/pem"
"flag"
with_entries(if .key == "Version" then . + {value: (.value | tonumber)} else . end)
@kwilczynski
kwilczynski / openpgp.md
Created December 21, 2022 20:07
openpgp.md

$argon2id$v=19$m=64,t=512,p=2$G/DQSn2+4afFDXZRdR3Vlw$DBvv46nt3EEkY5ehfDVfQQ