Skip to content

Instantly share code, notes, and snippets.

@azyu
azyu / _ubuntu_2204_dev_settings.md
Last active June 18, 2022 13:01
Ubuntu 22.04 LTS 개발 설정

Ubuntu 20.04 LTS 개발 설정

최초 실행

> sudo apt-get update
> sudo apt-get upgrade

git 설치

> sudo apt-get install git git-lfs
@azyu
azyu / k3s_cluster_on_windows.cmd
Last active February 15, 2022 07:18
Local kubernetes cluster on Windows (k3s)
@echo off
multipass launch -c 1 -m 4G -d 8G -n k3s-master 20.04 --cloud-init cloud-init.yaml
multipass exec k3s-master eval "curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE=644 sh -s -"
multipass launch -c 1 -m 2G -d 8G -n k3s-node-01 20.04 --cloud-init cloud-init.yaml
multipass launch -c 1 -m 2G -d 8G -n k3s-node-02 20.04 --cloud-init cloud-init.yaml
REM IPV4
multipass info k3s-master | for /f ="tokens=2" %a in ('findstr "IPv4"') do @echo %a > k3s_url.txt
@azyu
azyu / cloud-init.yaml
Created February 15, 2022 07:17
cloud-init for multipass
---
repo_update: true
repo_upgrade: true
timezone: Asia/Seoul
locale: ko_KR.utf8
packages:
- zsh
- unzip
@azyu
azyu / openssl_sha256.sh
Last active March 22, 2022 14:45
openssl sha256 sign / verify command line
openssl dgst -sha256 -sign private.pem -out text.txt.rsa text.txt
openssl dgst -sha256 -verify public.pem -signature text.txt.rsa text.txt
cat text.txt.rsa | base64
@azyu
azyu / .vimrc
Created June 28, 2022 17:13
neovim
call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdtree'
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'romgrk/barbar.nvim'
Plug 'Mofiqul/vscode.nvim'
@azyu
azyu / bsky_keyboard_shortcut.user.js
Last active May 20, 2024 10:19
Bluesky Keyboard Shortcut (for Tampermonkey)
// ==UserScript==
// @name Bluesky Keyboard Shortcut
// @namespace https://bsky.app/profile/azyu.bsky.social
// @version 0.13
// @description Bluesky Keyboard Shortcut
// @author Azyu (azyu.bsky.social)
// @match https://bsky.app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app
// @grant none
// @updateURL https://gist.github.com/azyu/e72d6a4ff0da23876ab95a5be7d18490/raw/43fe4e703be2c7253973244e1996399f52ff7282/bsky_keyboard_shortcut.user.js