Skip to content

Instantly share code, notes, and snippets.

View kaimingguo's full-sized avatar

Kaiming Guo kaimingguo

View GitHub Profile
@kaimingguo
kaimingguo / main.go
Created February 6, 2025 01:53
Self-signed certificate in Go
package main
import (
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/base64"
@kaimingguo
kaimingguo / Cargo.toml
Created March 2, 2025 08:43
Taiwan Powerball numbers generator
[package]
name = "tw-powerball-rs"
version = "0.1.0"
edition = "2021"
[dependencies]
rand = "0.9"
@kaimingguo
kaimingguo / README.md
Created March 2, 2025 14:20
Search Project TODOs with fzf
rg --color=always --line-number "TODO|FIXME|XXX|HACK|BUG|NOTE" | \
fzf --ansi \
    --delimiter : \
    --preview 'bat --style=numbers --color=always --highlight-line {2} {1}' \
    --preview-window '+{2}-/2'
@kaimingguo
kaimingguo / Vagrantfile
Created March 10, 2025 08:20
Vagrant Box and k3s, Cilium
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at

Keybase proof

I hereby claim:

  • I am kaimingguo on github.
  • I am kaiming (https://keybase.io/kaiming) on keybase.
  • I have a public key ASA2yXjjhAzNRexyrFbt6FXGeCCRINTww4NeA8P4tWxinQo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.