Skip to content

Instantly share code, notes, and snippets.

View sohnryang's full-sized avatar
๐ŸŸ
Potato inside

Ryang Sohn sohnryang

๐ŸŸ
Potato inside
View GitHub Profile
@sohnryang
sohnryang / vivado-on-m1-mac.md
Last active February 6, 2025 22:49
Vivado on ARM64 Mac using Rosetta 2

Running Vivado on ARM64 Mac using Rosetta 2

macOS Ventura supports running x86-64 binaries on Linux VMs. However, even with Rosetta installing Vivado is not a simple one-click process. This guide covers some workarounds and tricks to get Vivado up and running on ARM64 Mac.

  1. Make sure you're running macOS Ventura or higher.
  2. Install UTM and create a Debian VM with Rosetta according to their guide.
    • Other distributions should also work, but commands will be different.
  3. Install x86-64 version of java and libtinfo. Vivado depends on them.
@sohnryang
sohnryang / i3_statusbar.py
Created December 21, 2021 22:52
i3 statusbar using font awesome and nerd fonts
from datetime import datetime
from subprocess import check_output
from time import sleep
import json
import psutil
red = "#ed6259"
orange = "#f29b34"
green = "#8dd773"
@sohnryang
sohnryang / powerlogger.rs
Created December 21, 2021 22:50
Power logger written in Rust
use std::{
env::args,
fs::{read_to_string, File},
io::Write,
thread::sleep,
time::Duration,
};
fn main() -> std::io::Result<()> {
let args: Vec<String> = args().collect();
@sohnryang
sohnryang / coupled_oscillator.ipynb
Created March 27, 2021 11:07
Coupled Oscillator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sohnryang
sohnryang / hailstone.aheui
Last active October 9, 2018 12:43
์•„ํฌ ํ—ค์ผ์Šคํ†ค ์ˆ˜์—ด (๋งจ ๋งˆ์ง€๋ง‰ 1์€ ์•„์‰ฝ๊ฒŒ๋„ ์•ˆ๋‚˜์˜ต๋‹ˆ๋‹ค.)
๋ฐฉ๋น ๋ง๋ฐ•๋ฐœ๋šœ
๋‹ค๋น ๋ถ์—ฌ์–ด๋ญ
๋…ธ์ตธ๋ฑํ…จ๋„ˆ๋ฟŒ
๋ณธ๋ฒ…๋– ์š”๋„ˆ๋ถ
์•„ํฌ๋ณป์ฒ˜๋ณต๋ ค
@sohnryang
sohnryang / countdown-spaced.aheui
Created October 4, 2018 15:01
์•„ํฌ ์นด์šดํŠธ๋‹ค์šด (๋„์–ด์“ฐ๊ธฐ ์ถ”๊ฐ€ ver.)
๋ฐœ๋ฐ•๋”ฐ๋น ๋ญ‰
ํฌ์•„์ฑ ์•„๋ถ‘
๋น ๋ชฝ๋ถ“๋ฒˆ๋ถ
๋ฝ€ํ„ฐ๋„ˆ๋ซƒ๋– 
@sohnryang
sohnryang / countdown.aheui
Created October 4, 2018 09:53
์•„ํฌ ์นด์šดํŠธ๋‹ค์šด (9876543210)
๋ฐœ๋ฐ•๋šœ
ํ•˜์ฐจ๋ถ
๋น ๋ชฝ๋ถ„
๋ฝ€ํ„ฐ๋„ˆ
@sohnryang
sohnryang / fibonacci-cleaned.aheui
Created October 3, 2018 17:07
์•„ํฌ ํ”ผ๋ณด๋‚˜์น˜ (์ •๋ฆฌ ver.)
์‚ฎ๋ฐ˜๋ฐง๋‚˜๋น ์‹น์‚ฏ๋ถ
๋ญ‰๋ป๋„ˆ๋ฒ—๋ฒˆ์„œ๋– ๋ฒŒ
์‚ฏ๋น ๋งฃ์‚ฌ๋ง์‚ฏ๋น ๋ญ
๋ฟŒ๋”์„œ์จ์„ž์จ๋ป์„
๋ง์‚ฏ๋น ๋งฃ์‚ญ์‹บ์‚ฌ์™
@sohnryang
sohnryang / fibonacci.aheui
Last active October 3, 2018 17:05
์•„ํฌ ํ”ผ๋ณด๋‚˜์น˜
์‚ฎ๋ฐ˜๋ฐง๋‚˜๋น ์‹น์‚ฏ๋ฐ•๋ฐœ๋”ฐ์‚ฌ๋ฐ˜๋ฐง๋‚˜๋น ๋ง์‚ฏ๋น ๋งฃ์‚ฌ๋ง์‚ฏ๋น ๋ญ
์–ด์–ด์–ด์–ด์–ด์–ด์–ด์–ด์ฉ์„œ์ช์„๋ฉ“๋ป์„Ÿ๋ฉ๋ป๋”์„œ์จ์„ž์จ๋ป์„
@sohnryang
sohnryang / hello.aheui
Created October 3, 2018 16:26
์•„ํฌ ํ—ฌ๋กœ์›”๋“œ
๋ฐฃ๋ฐก๋”ฐ๋งฃ๋ฐ˜๋ฐœ๋”ฐ๋น ๋”ฐ๋ฐ˜๋ฐง๋‚˜๋‹ค๋ญ
๋šœ๋ป๋ป๋– ๋ฒ…๋ฒŒ๋ฉ“๋ฉ“๋ป๋– ๋ฒ‹๋– ๋ป๋ฒ–
๋‹ค๋ฐ˜๋ฐง๋‚˜๋‹ค๋งฃ๋ฐค๋น ๋ฐœ๋ฐ•๋”ฐ๋”ฐ๋‹ค๋ญ
๋ญํ„ฐ๋„ˆ๋ฒ—๋ฒˆ๋– ๋ฒ‹๋– ๋ฒŒ๋ฒ“๋ฉ“๋– ๋ฒ“๋ฒ”
๋ฐœ๋ฐง๋”ฐ๋น ๋น ๋”ฐ๋‹ค๋ฐ˜๋ฐง๋‚˜๋‹ค๋งฃ๋ฐœ๋ถ
๋ญ๋– ๋ฒ‹๋– ๋ป๋ฒ–๋ฉ“๋”๋ฒ”๋”๋– ๋ป๋ป๋– 
๋ฐœ๋ฐ˜๋”ฐ๋น ๋”ฐ๋งฃ๋ฐ›๋น ๋ฐœ๋ฐ•๋”ฐ๋”ฐ๋‹ค๋ญ
ํ—ˆ์–ด์–ด์–ด์–ด์–ด์–ด์–ด์–ด์–ด๋ฉ“๋– ๋ฒ…๋ฒŒ