Skip to content

Instantly share code, notes, and snippets.

@iwanhae
iwanhae / main.go
Created July 24, 2022 08:15
Use buildkit with go client
package main
import (
"context"
"fmt"
"os"
"github.com/containerd/console"
"github.com/moby/buildkit/client"
_ "github.com/moby/buildkit/client/connhelper/dockercontainer"
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/opt/homebrew/opt/node@18/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
apiVersion: apps/v1
kind: Deployment
metadata:
name: helm-controller
namespace: kube-public
labels:
app: helm-controller
spec:
replicas: 1
selector:
@iwanhae
iwanhae / fly.toml
Created August 11, 2023 08:45
deploy wiki.js to fly.io
# fly.toml app configuration file generated for iwanhae on 2023-08-09T14:02:50+09:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "iwanhae"
primary_region = "nrt"
swap_size_mb = 1024
[build]
@iwanhae
iwanhae / main.go
Created November 5, 2023 06:51
Kubernetes API Audit PoC
package main
import (
"compress/gzip"
"context"
"crypto/tls"
"errors"
"fmt"
"io"
"log"