Skip to content

Instantly share code, notes, and snippets.

View jmkim's full-sized avatar

Jongmin Kim jmkim

View GitHub Profile
@jmkim
jmkim / install-intel-ipu6-driver-on-debian-13.md
Created August 21, 2025 04:51
Install the IPU6 Webcam Driver on Debian 13 (Trixie)

Install the IPU6 Webcam Driver on Debian 13 (Trixie)

Since kernel 6.10, the IPU6 driver has been included in the mainline kernel. This guide explains how to install the driver on Debian 13 and its derivatives.

Tested Environment

  • PC: Lenovo ThinkPad X1 Carbon Gen 12
    • Camera: UHD 8.0MP + IR discrete, with privacy shutter, MIPI, fixed focus, Computer Vision, temporal noise reduction
  • OS: Debian GNU/Linux 13 “Trixie”
private long getRandomBankCapacity() {
long[] capacities = {
32L * 1024 * 1024, // 32 MiB
64L * 1024 * 1024, // 64 MiB
128L * 1024 * 1024, // 128 MiB
256L * 1024 * 1024, // 256 MiB
512L * 1024 * 1024, // 512 MiB
1024L * 1024 * 1024, // 1 GiB
2L * 1024 * 1024 * 1024, // 2 GiB
4L * 1024 * 1024 * 1024, // 4 GiB
@jmkim
jmkim / docker-unprivileged.md
Last active August 13, 2025 18:56
Unprivileged Docker Installation and Configuration

Installation commands:

sudo apt install dbus-user-session fuse-overlayfs slirp4netns uidmap docker-ce-rootless-extras
sudo systemctl disable --now docker.service docker.socket
sudo rm /var/run/docker.sock
echo 'export DOCKER_HOST="unix:///run/user/$(id -u)/docker.sock"' >> ~/.bashrc
sudo modprobe nf_tables
dockerd-rootless-setuptool.sh install
sudo loginctl enable-linger $(whoami)
.Dd June 27, 2019
.Dt LAZYGIT 1
.Os lazygit 0.8.1
.Sh NAME
.Nm lazygit
.Nd Simple terminal UI for git commands
.Sh SYNOPSIS
.Nm
.Sh DESCRIPTION
.Nm
---------------
AI 서버 (주)더블오
ai-server.dodev doubleO Co., Ltd.
---------------
CPU : 24 Cores 1 x 12th Gen Intel(R) Core(TM) i9-12900K
Memory : 128 GiB 4 x 32 GiB Samsung DDR5-4800
Disk : 16 TiB 1 x 4 TiB Samsung 990 PRO
VRAM : 48 GiB 2 x 24 GiB NVIDIA RTX 4090
---------------
1) 계정명, 암호 더블오 ID
#!/bin/sh
export SHELL_NAME="$(ps -p $$ -o comm=)"
export NANDBASE_GIT='https://github.com/doubleo-dev/nand-base.git'
export NANDBASE_ROOT="$HOME/nand-base"
export CONDA_INSTALLER_PATH="$NANDBASE_ROOT/Anaconda3-Linux-x86_64.sh"
export CONDA_PAGE_URL='https://www.anaconda.com/download/success'
export CONDA_LATEST_URL_REGEX='https://repo.anaconda.com/archive/Anaconda3-[^"]*-Linux-x86_64.sh'
#!/bin/bash
find . -path "./RIOT/build" -prune -o -type d -name "include" -print | sort
@jmkim
jmkim / update_ids_UUIDv7.rb
Created June 2, 2025 05:36
Update all existing model IDs to UUIDv7 in a Ruby on Rails application
require 'uuid7'
def update_ids(model_class)
ActiveRecord::Base.transaction do
records = if model_class.column_names.include?('seq')
# Sort by the 'seq' column if the model has it, as it describes the sequence of the records
model_class.order(:seq)
elsif model_class.column_names.include?('created_at')
# Sort by the 'created_at' column, which is automatically generated by Ruby on Rails with 't.timestamps'
model_class.order(:created_at)
@jmkim
jmkim / update_ids_uuidv7.rb
Last active June 2, 2025 05:35
Update all existing model IDs to UUIDv7 in a Ruby on Rails application
require 'uuid7'
def update_ids(model_class)
ActiveRecord::Base.transaction do
records = if model_class.column_names.include?('seq')
# Sort by the 'seq' column if the model has it, as it describes the sequence of the records
model_class.order(:seq)
elsif model_class.column_names.include?('created_at')
# Sort by the 'created_at' column, which is automatically generated by Ruby on Rails with 't.timestamps'
model_class.order(:created_at)
@jmkim
jmkim / rdep-lister.sh
Created April 17, 2025 04:42
Reverse-dependencies lister
#!/bin/bash
LIST_PATH="$1"
LIST="$(cat $LIST_PATH)"
for pkg in $LIST
do
echo ""
echo "------------------------------------------------------"
echo "$pkg"