Skip to content

Instantly share code, notes, and snippets.

View miyu4u's full-sized avatar

miyu kim miyu4u

  • Seoul
View GitHub Profile
@miyu4u
miyu4u / raspberry-pi-c-group-dtb.md
Created April 2, 2026 15:38
raspberry-pi-c-group-dtb.md

RPi 4B Bookworm+ Cgroup DTB 대응 가이드

  • 이 문서는 Raspberry Pi 4B에서 Bookworm 이후 Raspberry Pi OS를 사용할 때, cmdline.txt 수정만으로 memory cgroup이 활성화되지 않는 경우를 다룬다.
  • 이 문서는 Raspberry Pi 공식 문서가 아니라, 공식 문서와 실제 장애 사례를 바탕으로 정리한 운영 가이드임.
  • 기본 대응 경로는 여전히 /boot/firmware/cmdline.txt 수정임. DTB 확인과 수정은 cmdline.txt 반영 후에도 런타임 상태가 개선되지 않을 때만 적용하는 예외 조치로 취급함.
  • Raspberry Pi 공식 문서는 펌웨어가 최종 커널 커맨드라인과 DTB를 조정할 수 있다고 설명하지만, stock DTB의 /chosen/bootargs를 직접 수정하라는 cgroup 전용 운영 절차를 명시하지는 않음.
  • 따라서 DTB 수정 전에는 반드시 /proc/cmdline/sys/fs/cgroup/cgroup.controllers를 먼저 확인해 실제 런타임 blocker가 존재하는지 증거를 남겨야 함.
  • 이 문서에서는 일반적으로 쓰이는 DTB(Device Tree Blob)라는 용어를 사용함.

현상

@miyu4u
miyu4u / main.ts
Created May 7, 2025 07:45
nestjs/jwt crash at nodejs v24.0.0
import '@nestjs/jwt'
@miyu4u
miyu4u / fix.sh
Created August 17, 2023 11:48 — forked from koreapyj/fix.sh
Fix PiKVM WiFi malfunction issues on Raspberry Pi Zero 2 W
rw
cd /lib/firmware/brcm
ln -s ../cypress/cyfmac43430-sdio.bin brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.bin
ln -s ../cypress/cyfmac43430-sdio.clm_blob brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.clm_blob
ln -s brcmfmac43430-sdio.raspberrypi,3-model-b.txt brcmfmac43436s-sdio.raspberrypi,model-zero-2-w.txt
ro
reboot
@miyu4u
miyu4u / mocking.ts
Last active May 27, 2020 13:33
mocking typescript class depedency with jest test framework
import { FoobarService } from "./foobar.service"
import { FooService } from "./foo.service"
import { BarService } from "./bar.service"
jest.mock("./foo.service")
jest.mock("./bar.service")
describe("foobar service", ()=>{
let service:FoobarService
let foo:FooService
let bar:BarService
@miyu4u
miyu4u / registration.js
Created February 24, 2020 16:22
국세청 사업자등록상태조회 Promise Wrapper
/**
* 국세청 사업자등록상태조회 Promise Wrapper
*
* 사용으로 인해 발생하는 문제는 모두 사용 당사자에게 있습니다.
*/
function registration() {
if (typeof (WebSquare) == "undefined") throw "국세청 모듈이 존재하지 않습니다.";
var _eventKey = "fetch"
@miyu4u
miyu4u / heros.controller.ts
Last active January 23, 2020 13:24
NestJs TypeOrm create MultiTenant Connection at runtime Example (Multiple DB, Multiple Schema)
import { Controller, Scope } from '@nestjs/common';
import { Crud } from '@nestjsx/crud';
import { Heros } from '../entity/heros.entity';
import { HerosService } from './heros.service';
@Crud({
model: {
type: Heros
}