Skip to content

Instantly share code, notes, and snippets.

@OctopusET
OctopusET / compare_xml_json.py
Created April 3, 2026 20:00
law.go.kr API XML, JSON 반환값 비교
# SPDX-License-Identifier: Unlicense
"""XML (9bow cache) vs JSON (our API) 전체 필드 비교.
list wrapping 차이를 정규화한 뒤 실제 값을 비교.
"""
import json
import os
import sys
import xml.etree.ElementTree as ET
mmc dev 1
mmc part
ls mmc 1:5 /boot
ls mmc 1:5 /boot/dtbs
printenv
load mmc 1:5 ${loadaddr} /boot/vmlinuz-5.10.4
load mmc 1:5 ${fdt_addr_r} /boot/dtbs/k230-canmv.dtb
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk1p5 ro rootwait
bootm ${loadaddr} - ${fdt_addr_r}
* ERROR: sys-devel/clang-19.1.4::gentoo failed (configure phase):  *   sys-devel/clang:19 is required on the build host.  *   * Call stack:  *     ebuild.sh, line  136:  Called src_configure  *   environment, line 4037:  Called multilib-minimal_src_configure  *   environment, line 2871:  Called multilib_foreach_abi 'multilib-minimal_abi_src_c
# riscv64-unknown-linux-gnu-emerge -pqv '=sys-devel/clang-19.1.4::gentoo'
[ebuild  N    ] sys-devel/clang-19.1.4 to /usr/riscv64-unknown-linux-gnu/ USE="(pie) static-analyzer -debug -doc -extra (-ieee-long-double) -test -verify-sig -xml" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 
[ebuild  N    ] sys-devel/clang-toolchain-symlinks-19 to /usr/riscv64-unknown-linux-gnu/ USE="native-symlinks -gcc-symlinks -multilib-symlink
@OctopusET
OctopusET / Purge.md
Created November 21, 2024 18:07
Remove all members from github organization
  1. Goto https://github.com/orgs/YOUR_ORG/people
  2. Export json file
  3. Run this commend
ORG=<YOUR_ORG>
cat export-YOUR_ORG-123456789.json | jq -r '.[].login' | while read username; do
gh api -X DELETE "/orgs/$ORG/members/$username"
done
@OctopusET
OctopusET / arch-milkv-jupiter-nvme.md
Last active November 21, 2024 18:11
ArchLinux on Milk-V jupiter with NVMe

First method

  1. Install bianbu first with titanflash. I used v2.0.2 minimal bianbu image.
  2. Remove all files in /dev/sda6
  3. tar xvf archriscv-latest.tar.zst -C /path/to/mounted/dev/sda6

Second method

Not working, check this fedora-riscv/fedorav-force-images-discussions#4 (comment)

  1. dd on nvme with fedora image zcat k1-fedora-multi-desktops.img.gz | sudo dd of=/dev/sda status=progress
  2. Change size of sda6 then add swap (sda7) and arch root (sda8) with fdisk command sudo fdisk /dev/sda
  3. mkswap /dev/sda7
@OctopusET
OctopusET / appinventor-install-archlinux.md
Created December 26, 2020 19:25 — forked from lunhg/appinventor-install-archlinux.md
Install App-inventor in ArchLinux

Appinventor

Download dependencies

If you use a x86_64 operating system, you will need to install lib32-* packages. For do this you must add multilib sources at /etc/pacman.conf and uncomment these lines:

#[multilib]
#Include = /etc/pacman.d/mirrorlist