Skip to content

Instantly share code, notes, and snippets.

View jmkim's full-sized avatar

Jongmin Kim jmkim

View GitHub Profile
# m h dom mon dow command
*/5 * * * * /home/jmkim/papermc-backup.sh

data.pknu.ac.kr (sfrc) 홈 파티션 HDD

매뉴얼 위치 : https://deb.li/IDBHDD

HDD 용도

본 HDD는 /home 에 통채로 마운트하기 위한 HDD입니다.

LVM 입니다. 추후 HDD 이어붙여 용량 확장 시 도움이 될거예요.

jmkim@db  ~  sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
dnsutils g++-12 gcc-13-base gcc-14-base ibverbs-providers libabsl20220623 libaom-dev libavif-dev libavif16 libboost-iostreams1.74.0 libboost-thread1.74.0 libcephfs2 libdav1d-dev libde265-dev libdeflate-dev libfmt9
libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libheif-dev libibverbs1 libjbig-dev libjpeg-dev libjpeg62-turbo-dev liblerc-dev libnl-3-200 libnl-route-3-200 libnsl-dev libpthread-stubs0-dev librados2 librav1e-dev
librav1e0.8 librdmacm1 libsframe1 libsharpyuv-dev libstdc++-12-dev libsub-override-perl libsvtav1enc-dev libsvtav1enc2 libtiff-dev libtiffxx6 libtirpc-dev libunistring2 libutempter0 libvpx-dev libvpx11 libvpx7
libwebp-dev libwebpdecoder3 libwebpmux3 libx265-199 libx265-dev libxpm-dev libyuv-dev libzstd-dev php8.2-cli php8.2-fpm php8.2-gd php8.2-mysql p
@jmkim
jmkim / check-deb.sh
Last active November 30, 2025 18:28
#!/usr/bin/env sh
# Author: Jongmin Kim <jmkim@debian.org>
# Usage: ./check-deb.sh file.deb
# Strict mode
set -eu
# $1 as $DEB
DEB="${1:-}"
char a2i[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
// in_base진수에서 int형(10진수)으로 변환
// in_base가 10진수 이상일 경우 대문자만 지원(A, B, C, ...)
int stoi(string input, int in_base) {
int number = 0;
for(char ch : input) {
number *= in_base;
number += ch - ((ch <= '9') ? '0' : 'A' - 10);
}
[Desktop Entry]
Version=1.0
Name=Arduino IDE
Comment=Write code and flash to Arduino hardware
GenericName=Embedded electronics IDE
Keywords=Programming;Development
Exec=/opt/arduino-ide_2.3.6_Linux_64bit/arduino-ide
Terminal=false
X-MultipleArgs=false
Type=Application
@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