Skip to content

Instantly share code, notes, and snippets.

View crazytaxii's full-sized avatar
🎯
DO IT

HF crazytaxii

🎯
DO IT
View GitHub Profile
@crazytaxii
crazytaxii / deepflow-server-image-building.md
Last active January 15, 2024 03:28
Build DeepFlow server image

Clone DeepFlow git repositry https://github.com/deepflowio/deepflow and make your change.

Add a new Dockerfile for building DeepFlow server:

$ cat <<EOF > ./server/Dockerfile.ci
FROM crazytaxii/deepflow-builder:latest AS builder

COPY . /go/deepflow
@crazytaxii
crazytaxii / deploy-nfs-csi.sh
Last active September 25, 2024 06:22
Deploy NFS server and CSI on Kubernetes
#!/bin/bash
set -e
DRIVER_VERSION="v4.8.0"
main() {
# deploy nfs server
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/deploy/example/nfs-provisioner/nfs-server.yaml
# deploy nfs csi driver
@crazytaxii
crazytaxii / prototag.go
Created December 11, 2024 09:05
Inject protobuf tag to struct definition in go file.
package main
import (
"bufio"
"bytes"
"fmt"
"log"
"os"
)
@crazytaxii
crazytaxii / deploy-containerd-only.sh
Last active March 5, 2025 15:43
Deploy containerd only
#!/bin/bash
CONTAINERD_VERSION="1.7.26"
RUNC_VERSION="1.2.5"
NERDCTL_VERSION="1.7.6"
main() {
sudo yum update -y
ARCH=$(uname -m | sed -e 's/aarch64/arm64/' -e 's/x86_64/amd64/')
@crazytaxii
crazytaxii / diff.go
Last active March 11, 2025 16:07
Diff 2 directories.
//go:build linux || darwin
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"log"