Skip to content

Instantly share code, notes, and snippets.

View ziwon's full-sized avatar
πŸ—Ώ
?!

Yeongpil Y. ziwon

πŸ—Ώ
?!
View GitHub Profile
@toricls
toricls / lima-on-m1-mac-installation-guide.md
Last active November 2, 2025 18:35
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs

Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.

Sep. 27th 2021 UPDATED

Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:

Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.

1. Install QEMU & Lima

@leoh0
leoh0 / README.md
Last active July 18, 2024 06:44
containerdλ₯Ό μ΄μš©ν•΄μ„œ standalone kubelet μ‚¬μš©ν•˜κΈ°

standalone-kubelet-with-containerd.md

가끔 kubernetes 같은건 λ„ˆλ¬΄ λ¬΄κ±°μ›Œμ„œ 단일 ν˜ΈμŠ€νŠΈμ— docker만 λ„μ›Œμ„œ μš΄μ˜ν•˜λŠ” κ²½μš°κ°™μ€κ±Έ κ³ λ―Ό ν•˜κ²Œ λ©λ‹ˆλ‹€. ν•˜μ§€λ§Œ κ·Έλƒ₯ docker만 κ°€μ§€κ³  μ‚¬μš©ν•˜λ©΄ μ»¨ν…Œμ΄λ„ˆκ°€ μ£½μ—ˆμ„λ•Œ 관리해 μ€˜μ•Ό ν•˜λŠ” λΆˆνŽΈν•¨κ³Ό 같이 κΈ°λŠ₯을 보닀 더 ν•„μš”λ‘œ ν•˜κ²Œ λ©λ‹ˆλ‹€. κ·Έλž˜μ„œ 이 방법을 μ†Œκ°œν•΄ λ“œλ¦½λ‹ˆλ‹€.

이건 standalone kubelet 이라고 λΆˆλ¦¬λŠ” master 없이 node만 κ΄€λ¦¬ν•΄μ£ΌλŠ” kubelet을 μ΄μš©ν•΄μ„œ containerλ₯Ό κ΄€λ¦¬ν•˜λŠ” λ°©λ²•μž…λ‹ˆλ‹€. 이건 k8s 초기 λΆ€ν„° μ›λž˜ μ‘΄μž¬ν–ˆλ˜ μ»¨μ…‰μ΄λ‚˜ 많이 μ•Œλ €μ Έ μžˆμ§€ μ•Šμ•„μ„œ λͺ¨λ₯΄μ‹œλŠ” 뢄듀이 λ§Žμ•„μ„œ 이글을 μž‘μ„±ν•΄ λ΄€μŠ΅λ‹ˆλ‹€.

이 방법을 μ΄μš©ν•˜λ©΄ μ‹€μ œ master 없이 kubelet 만으둜 μ„œλΉ„μŠ€λ₯Ό ν•  수 μžˆμŠ΅λ‹ˆλ‹€. μ»¨ν…Œμ΄λ„ˆ μžλ™ μž¬μ‹œμž‘, port forwarding, resource limit λ“± 기본적인 kubeletμ—μ„œ μ œκ³΅ν•˜λŠ” λ‹€μ–‘ν•œ λ°©λ²•μœΌλ‘œ μ»¨ν…Œμ΄λ„ˆλ“€μ„ 관리 ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

@niw
niw / README.en.md
Last active August 28, 2025 18:24
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!

NOTE: that this is current, 10/1/2021 state.

Running Windows 10 on ARM

  1. Install Xcode from App Store or install Command Line Tools on your Mac
@theojulienne
theojulienne / traceicmpsoftirq.py
Last active January 11, 2024 12:38
ICMP packet tracer using BCC
#!/usr/bin/python
bpf_text = """
#include <linux/ptrace.h>
#include <linux/sched.h> /* For TASK_COMM_LEN */
#include <linux/icmp.h>
#include <linux/netdevice.h>
struct probe_icmp_data_t
{
@dlamblin
dlamblin / copy_one_line_per_sec.bash
Last active April 24, 2024 14:19
Subscribing to an AWS region's status RSS feeds in slack
sleep 5; while read -r line; do clear; echo $line; echo "$line" | pbcopy; sleep 1; done < "feed_commands_for_seoul_ap-northeast-2.txt"
@leoh0
leoh0 / debugdead.py
Last active January 23, 2024 01:58
debugging dead k8s pod ( copy k8s pods and inject busybox binary and change command to sleep )
#!/usr/bin/env python
import argparse
import os
import subprocess
import sys
import uuid
from tempfile import NamedTemporaryFile
import yaml
#!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@serithemage
serithemage / aws-study-resource.md
Last active October 4, 2025 21:25
AWS ν•™μŠ΅ μžλ£Œμ§‘

AWS ν•™μŠ΅ 링크집 μ‹œλ¦¬μ¦ˆ

@shokoe
shokoe / aws_inspector_cron.sh
Last active September 11, 2024 05:54
Executes AWS Inspector run, export full findings csv file from last completed run, compile a concise counters report including severity and package aggregates by hostname. Full and aggregated report are uploaded to S3.
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/snap/bin
log="/var/log/aws_inspector/aws_inspector_export_rep.log"
template_arn='arn:aws:inspector:us-east-1:XXXXXXXXXXXX:target/xxxxxxxxxx/template/xxxxxxxxxx'
wait_sec='5400'
log_out(){
(($verifymon)) &&\
echo -e "`date +'%Y-%m-%d %H:%M:%S'` (pid $$) -- $1" >> $log ||\
echo -e "`date +'%Y-%m-%d %H:%M:%S'` (pid $$) -- $1" | tee -a $log