Skip to content

Instantly share code, notes, and snippets.

@azyu
azyu / bsky_keyboard_shortcut.user.js
Last active July 28, 2023 01:27
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
@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 / 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 / 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 / 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 / _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 / install_kube_on_ubuntu.md
Last active June 30, 2021 07:48
Install Kubernetes 1.21 on Ubuntu 20.04

install cri-o

# .conf 파일을 만들어 부팅 시 모듈을 로드한다
cat <<EOF | sudo tee /etc/modules-load.d/crio.conf
overlay
br_netfilter
EOF

modprobe overlay
modprobe br_netfilter
@azyu
azyu / startup.cmd
Last active December 17, 2020 05:40
.bashrc equivalent for windows cmd shell
@echo off
echo Load alias command...
doskey cd~=cd /D %USERPROFILE%
doskey scoop_update=scoop update *$Tscoop cache rm *$Tscoop cleanup *
@azyu
azyu / imas_sc.js
Created May 5, 2018 12:32
Tampermonkey: THE IDOLMASTER SHINY COLORS - background sound enabler
// ==UserScript==
// @name THE IDOLMASTER SHINY COLORS - background sound enabler
// @namespace https://twitter.com/_uyza_
// @version 0.1
// @description Playing sound when browser loses focus
// @author Azyu
// @match https://shinycolors.enza.fun/*
// @grant none
// ==/UserScript==