Skip to content

Instantly share code, notes, and snippets.

View LunaNyan's full-sized avatar
🎹
Making MIDI

libertin LunaNyan

🎹
Making MIDI
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lunanyan on github.
  • I am libertin_ (https://keybase.io/libertin_) on keybase.
  • I have a public key ASAXLUTNX3J4bVNOxvOYkuai7S_7MCbVOGZah8uONVHx4Qo

To claim this, I am signing this object:

@LunaNyan
LunaNyan / lvm-cache-fedora.md
Created November 13, 2023 07:14 — forked from gabrieljcs/lvm-cache-fedora.md
Instructions to create an LVM cache for root in Fedora

LVM cache in Fedora

From the man-pages: "The cache logical volume type uses a small and fast LV to improve the performance of a large and slow LV. It does this by storing the frequently used blocks on the faster LV. LVM refers to the small fast LV as a cache pool LV. The large slow LV is called the origin LV. Due to requirements from dm-cache (the kernel driver), LVM further splits the cache pool LV into two devices - the cache data LV and cache metadata LV. The cache data LV is where copies of data blocks are kept from the origin LV to increase speed. The cache metadata LV holds the accounting information that specifies where data blocks are stored (e.g. on the origin LV or on the cache data LV). Users should be familiar with these LVs if they wish to create the best and most robust cached logical volumes. All of these associated LVs must be in the same VG."

Assuming LVM is already setup in HDD (e.g. from anaconda) and SSD is untouched.

Create a physical

@LunaNyan
LunaNyan / cpwlf.txt
Created November 12, 2023 21:49
님들 라면드시지마세요 체질이라는게바뀝니다
님들 라면드시지마세요 체질이라는게바뀝니다 예를들어 초식공룡과 육식공룡이잇는데요 초식공룡처럼힘약해질려면 라면을드시고 육식공룡처럼 힘쌔지고싶으시면 라면드시지마세요
합기도배운놈 따라하고 유도배운놈이겨서따라하고 복싱배운놈이겨서따라하고 잡종맛좀봐라 이얏 합기도+유도+복싱+태권도+ 아침밥 꼭먹고 학교가기ㅋㅋ아침밥머기전 물2잔ㅇㅋ10초간격으로 물1한마시고또물1한잔 20분후 식사ㄱㄱ밥먹을때 국잇어야됨 아침,점심,저녁 꼭 꼬박꼬박 챙겨드세요 군것질해봣자 몸무게만늘고 힘빠지고 식사후2시간동안 똥누면안됨 힘쌔질려멱 그리고 이온음료,탄산음료 는 목막힐때만 먹는거임 과자는 먹어봣짜 힘빠지고 아스크림 힘빠지고 초콜릿 힘빠지고 라면은 체질이바뀜 동물로비유하자면 초식동물과 육식동물이잇는데요 초식동물처럼
힘이약해지고 싶으면 라면을 먹어야되고 육식동물처럼
라면 안먹어야됨 힘쌔질려면학교급식에 사과나오면먹으면안되고 밥먹을때 국부터먹는거다 고기반찬나왓다고 고기부터먹는게아니라 다먹고 물컵에 물 80%ㅇ따는후 절반씩 천천히나눠서마셔라 그리고 힘쌔지고싶으면 킥복싱배워라 힘,체력,기술배울수잇고 와사바리를 전문으로가르켜주는게 유도체육관이다 요구르트 먹지말고 요플레 적당히먹어라 그리고 막창,곱창 조금만 먹어라 그리고고기를 많이먹지마라 그리고 라면먹지마라 체질이바뀌니까 그리고 이온음료,탄산음료는 적당히 만먹고 우유는 흰우유마시지마라 딸기우유마셔라 그리고 남.여 는 흰우유마시면힘빠진다 흰우유는 키클때미 도움이됩니다 그리고 힘쌔질려면 초코우유,바나나우유,딸기우유많이마시고 우유좋아하는사람만 그리고 딸기먹는거 좋아하는사람은 백설탕에 찍어먹어라 그리고 딸기많이먹고 치킨많이먹어라 최소1인1닭해라 닭 먹을때 이온음료,탄산음료 마시지말고 그리고 우유는 키크고싶은사람만먹어라 그리고 라면은 동물로비유하자면 초식동물과 육식동물이 잇는데 초식동물처럼 힘이약해지고싶으면 라면을먹어라 그리고 육식동물처럼 힘이쌔지고싶으면 라면먹지마라 그리고 자고로 남자는 등빨이잇어야되고 그리고 남자는 덩치가클려면 어깨,등을 넓게만들어야되고 라면먹지말아야된다 힘모조리빠진다 그리고 회는
@LunaNyan
LunaNyan / onimai_stick.sh
Last active August 16, 2023 19:10
끝갤 크리피파스타
#!/sbin/sh
# 오빠는 끝 마이너 갤러리 : http://gall.dcinside.com/mgallery/board/lists?id=onii
# 할짓거리 없어서 만든 것이므로 진지하게 받아들이지는 말 것
# 전제 조건
# - PC인 경우
# - Z8350 또는 비슷한 성능 이상의 SoC, HEVC 하드웨어 디코딩이 가능한 경우 다른 SoC도 사용 가능
# - 1GB+ RAM
# - Debian 또는 Ubuntu Server, 클린 설치, 데스크탑 환경 미설치 상태여야 함
@LunaNyan
LunaNyan / cybercode.py
Created July 1, 2023 13:18
쓸데없지만 멋있는 암호문 생성기
import random
def generate(text):
for i in text:
if not 32 <= ord(i) <= 126:
raise ValueError("Messages must consist of only basic printable ASCII codes")
tlst = list()
while len(text) > 0:
if len(text[:2]) == 1:
@LunaNyan
LunaNyan / oshinokonokonokono.rs
Last active May 24, 2023 16:46
최애의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의 아이의
// !! 이 코드를 절대 실사용 시스템에서 실행하지 마십시오 !!
use std::fs;
fn main() {
// 최애
let path:&str = "/home/oshi";
print!("최애의 ");
while true {
@LunaNyan
LunaNyan / 21ed_onboard_ram.txt
Created May 14, 2023 08:36
Inforamtion of 21ED On-board RAM
Handle 0x000B, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0001
Error Information Handle: 0x000A
Total Width: 64 bits
Data Width: 64 bits
Size: 8 GB
Form Factor: SODIMM
Set: None
Locator: DIMM 0
@LunaNyan
LunaNyan / lid_check.py
Created April 1, 2023 17:16
사상최초 애니콜 노트북 등장
import os
import time
state = None
state_prev = True
while True:
st = os.popen("cat /proc/acpi/button/lid/LID/state").read()
if "open" in st:
state = True
@LunaNyan
LunaNyan / .p10k.zsh
Last active April 29, 2023 18:23
my p10k config
# Generated by Powerlevel10k configuration wizard on 2023-04-30 at 03:17 KST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 16558.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, darkest,
# 24h time, slanted separators, slanted heads, flat tails, 2 lines, dotted, no frame,
# sparse, few icons, fluent, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
#!/bin/sh
if ! [ $(id -u) = 0 ]; then
echo "where is fucking sudo?"
exit 1
fi
cp -r /etc/rtl8852be /tmp/rtl8852be
cd /tmp/rtl8852be