Skip to content

Instantly share code, notes, and snippets.

View developer-guy's full-sized avatar
🐾
Every artifact can be verifiably traced to Source Code and Hardware

Batuhan Apaydın developer-guy

🐾
Every artifact can be verifiably traced to Source Code and Hardware
View GitHub Profile
@toricls
toricls / lima-on-m1-mac-installation-guide.md
Last active November 9, 2024 23:03
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs

Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.

Sep. 27th 2021 UPDATED

Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:

Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.

1. Install QEMU & Lima

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 9, 2025 08:51
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@smartameer
smartameer / prepare-commit-msg
Created July 6, 2021 19:35
Git coauthor hook for pre-commit message
#!/bin/bash
function prompt_for_multiselect {
# little helpers for terminal print control and key input
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
RESTORE='\033[0m'
ESC=$( printf "\033")
cursor_blink_on() { printf "$ESC[?25h"; }
@Dentrax
Dentrax / main.go
Last active August 14, 2022 20:41
demo: delve-entrypoint-mutating
package main
import (
"archive/tar"
"bytes"
"fmt"
"github.com/google/go-containerregistry/pkg/crane"
"github.com/google/go-containerregistry/pkg/name"
v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/google/go-containerregistry/pkg/v1/mutate"
@Issif
Issif / main.go
Last active December 19, 2023 13:45
Send fake Falco events to Falcosidekick
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"log"
"math/rand"
"net/http"
@dims
dims / README.md
Last active May 3, 2025 05:44
Kubernetes Resources
@PatrLind
PatrLind / protect-kube-config.md
Created April 26, 2021 08:43
How to protect your ~/.kube/ configuration

How to protect your ~/.kube/ configuration

I had a need to protect my Kubernetes config file on my computer against accidental or malicious change or reading, so I came up with this way of protecting the config files.

How it works

The ~/.kube folder is mounted using encfs. By using the --ondemand flag it will automatically ask for the encryption key/password when accessed and keep

######################################################
# Shipa #
# A Kubernetes platform from developer's perspective #
# https://youtu.be/aCwlI3AhNOY #
######################################################
#########
# Setup #
#########
@onelittlenightmusic
onelittlenightmusic / 0-opa-json-cheatsheet.md
Last active August 20, 2021 20:30
Document for `jr`, `jb` or `jp`

jr, jp, jb (alias to opa eval): Cheatsheet

jr, jp and jb are commands for JSON modification.

Basic usages

$ data='{"name":"chris", "friends":["alice", "bob"]}'
# jr
$ echo $data | jr 'i.name'
@mvisonneau
mvisonneau / make.sh
Created February 1, 2021 18:07
Compile kubernetes/dns/node-cache
git clone https://github.com/kubernetes/dns.git
cd dns
git checkout 1.17.0
make containers CONTAINER_BINARIES=node-cache
make containers CONTAINER_BINARIES=node-cache ARCH=arm64
docker tag gcr.io/k8s-staging-dns/k8s-dns-node-cache-amd64:1.17.0 mvisonneau/k8s-dns-node-cache-amd64:1.17.0
docker tag gcr.io/k8s-staging-dns/k8s-dns-node-cache-arm64:1.17.0 mvisonneau/k8s-dns-node-cache-arm64:1.17.0
docker push mvisonneau/k8s-dns-node-cache-amd64:1.17.0
docker push mvisonneau/k8s-dns-node-cache-arm64:1.17.0