Skip to content

Instantly share code, notes, and snippets.

@gogonkt
gogonkt / LXCBindMount.md
Created August 3, 2025 08:28 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

Create group on host

In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.

@gogonkt
gogonkt / expose-directory-on-host-to-lxc-container.md
Created August 3, 2025 05:29 — forked from julianlam/expose-directory-on-host-to-lxc-container.md
Exposing a directory on the host machine to an LXC container #blog

Exposing a directory on the host machine to an LXC container

  1. Log into the container and create an empty directory, this will be the mount point
  2. Log out and stop the container.
  3. Open to your container's config file
    • For regular LXC containers: /var/lib/lxc/mycontainer/config
    • For unprivileged LXC containers: $HOME/.local/share/lxc/mycontainer/config
  4. Add a new line above the lxc.mount directive, that follows the format below. Substitute proper paths as necessary:
    • lxc.mount.entry = /path/to/folder/on/host /path/to/mount/point none bind 0 0
  • Both of these paths are relative to the host machine.
@gogonkt
gogonkt / boot-from-ram-debian.md
Created July 29, 2025 03:30 — forked from avinash-oza/boot-from-ram-debian.md
How to boot from RAM on debian
@gogonkt
gogonkt / AlpineK8s.md
Created July 2, 2025 09:17 — forked from RamboRogers/AlpineK8s.md
Alpine Linux K8s in 10 Minutes

Alpine Linux 🌲 K8s in 10 Minutes

Summary

This guide will allow you to deploy a fresh Alpine Linux install into a Kubernetes K8 cluster in less than 10 minutes.

Why ✨

I went to learn Kubernetes recently and I built a k3 cluster using Alpine in an hour or so, it was a great experience. I figured the next step would be K8s, but I found no material on K8s for Alpine. This guide is the result of my first pass and the incorporations of high quality notes from the contributers. Kubernetes 🦄 is awesome.

Contributers

@gogonkt
gogonkt / Raspberry Pi Access Point on Alpine Linux.md
Created June 29, 2025 08:44 — forked from XtendedGreg/Raspberry Pi Access Point on Alpine Linux.md
Creating an Access Point on Raspberry Pi running Alpine Linux

Creating an Access Point on Raspberry Pi running Alpine Linux

By: XtendedGreg as seen on https://youtube.com/live/Uagq3oZrk6k

Introduction

Creating an access point with Alpine Linux on a Raspberry Pi can be an excellent project, as it allows you to extend your network or even create a new wireless network in a location where only wired internet is available. Below is a procedure to help you set up your Raspberry Pi as an access point using Alpine Linux. This guide assumes you have basic knowledge of Linux commands and networking.

Equipment Needed

  • Raspberry Pi (any model with Wi-Fi capability, e.g., Raspberry Pi 3/4/5)
  • MicroSD card (8 GB or more recommended)
  • Power supply for Raspberry Pi
@gogonkt
gogonkt / wlan.md
Created September 24, 2023 13:00 — forked from okanon/wlan.md
AlpineLinux with wlan settings

AlpineLinux with wlan settings.

Install necessary drivers and software

First make sure your wireless drivers are loaded properly.
Install wpa_supplicant & dhcpcd.

apk add wpa_supplicant dhcpcd

Configuration

@gogonkt
gogonkt / gist:4d5cc5896ee60059f967ca1c7517a0a2
Created August 15, 2022 17:57 — forked from h4n2k/gist:c96f6b26ee6efd6e3728a4ce83aebcc9
Install Japanese, Korean and Chinese fonts on Arch Linux
yaourt -S ttf-tw wqy-microhei wqy-zenhei ttf-arphic-ukai opendesktop-fonts wqy-bitmapfont ttf-hannom otf-ipafont ttf-vlgothic ttf-mplus ttf-monapo ttf-sazanami ttf-unfonts-core ttf-nanum ttf-nanumgothic_coding --noconfirm
@gogonkt
gogonkt / SIMPL_ASM_1
Created July 22, 2022 10:03 — forked from monsonite/SIMPL_ASM_1
A tiny forth-like language for MSP430G2553
;-------------------------------------------------------------------------------
; SIMPL - a very small Forth Inspired, Extensible Language
; Implementing the Initialisation, TextTead, TextEval and UART routines in MSP430 assembly language
;
; A Forth-Like Language in under 1024 bytes
; Ken Boak May 22nd/23rd 2017
; Loops, I/O, Strings and Delays added
; This version 872 bytes
; SIMPL_ASM_1
@gogonkt
gogonkt / content.md
Created October 20, 2017 06:22 — forked from baymaxium/content.md
左耳朵耗子:程序员如何用技术变现?

原文:InfoQ

作者|陈皓

编辑|小智

从事编程这个事可以做到,完全靠自己的手艺、不依赖任何人或公司去生活的。但道理我都懂,怎么做才是关键。本文摘自陈皓(左耳朵耗子)在极客时间 App 开设的付费专栏“左耳听风”。

@gogonkt
gogonkt / SIMPL_ASM430_13
Created October 4, 2017 19:05 — forked from monsonite/SIMPL_ASM430_13
A tiny "Forth-like" interpreted language for MSP430 - in under 800 bytes of codespace
;-------------------------------------------------------------------------------
; SIMPL - a very small Forth Inspired Extensible Language
; Implementing the Initialisation, TextTead, TextEval and UART routines in MSP430 assembly language
;
; A Forth-Like Language in under 1024 bytes
; Ken Boak May June 2017
; Loops, I/O, Strings and Delays added
; Jump table reduced by 36 entries (72 bytes)