Skip to content

Instantly share code, notes, and snippets.

View rlaace423's full-sized avatar
🏠
Working from home

Sam (Sangho Kim) rlaace423

🏠
Working from home
View GitHub Profile
@rlaace423
rlaace423 / 01_ubuntu_install_winehq.sh
Last active March 1, 2021 06:19
wine 및 μΉ΄μΉ΄μ˜€ν†‘ μ„€μΉ˜
## https://wiki.winehq.org/Ubuntu
## μœ„ 링크λ₯Ό 톡해 μ•„λž˜ μ„€μΉ˜ 방법이 μ΅œμ‹ μΈμ§€, 버전 or OS와 μΌμΉ˜ν•˜λŠ”μ§€ 확인할 것!!
# apt μ €μž₯μ†Œ μΆ”κ°€ (운영체제 별 상이!!)
sudo sh -c 'echo "deb https://dl.winehq.org/wine-builds/ubuntu/ focal main" > /etc/apt/sources.list.d/winehq.list'
# gpg key μΆ”κ°€
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/winehq.gpg > /dev/null
# winehq stable μ„€μΉ˜
@rlaace423
rlaace423 / case-sensitive-find.js
Created July 27, 2020 03:21
Case-sensitive Finder for Chrome
# Create bookmark like
## name: (whatever you want)
## URL: (copy & paste codes below)
javascript: (function () {
var text = prompt('Search for:', '');
if (text == null || text.length == 0) return;
var spans = document.getElementsByClassName('labnol');
if (spans) {
for (var i = 0; i < spans.length; i++) {
MohaveλŠ” 거의 λ°”λ‘œ λ˜μ§€λ§Œ, CatalinaλŠ” 손 볼게 μ’€ λ§Žλ‹€..
κΉƒν—™ 레포
https://github.com/jloisel/t440p
Kext λ³€κ²½ λ‚΄μ—­
- AppleALC 1.2.8둜 λ‹€μš΄κ·Έλ ˆμ΄λ“œ (잠자기 μ‹œ μ»€λ„νŒ¨λ‹‰ 문제)
https://github.com/acidanthera/AppleALC
- BrcmPatch Catalina에 맞게 ꡐ체 : ..Data, ..RAM3, ..Injector (Catalinaμ—μ„œ DW1820A λΈ”λ£¨νˆ¬μŠ€/μ™€μ΄νŒŒμ΄ 문제)
@rlaace423
rlaace423 / zsh_macos.sh
Last active August 27, 2023 16:03
install zsh & nvm
# install defaults
brew install zsh
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# zsh-syntax-highlighting (λͺ…λ Ήμ–΄ 색상 ν•˜μ΄λΌμ΄νŒ…)
@rlaace423
rlaace423 / resize_partition.sh
Last active November 18, 2019 06:37
resize_partition.sh
########################################################
#
##### Overall Steps #####
#
# (shutdown)
# 1. ncloud μ½˜μ†”μ—μ„œ "λ””μŠ€ν¬" 크기 ν™•μž₯
# (boot, umount)
# 2. λ””μŠ€ν¬μ˜ "νŒŒν‹°μ…˜" 크기λ₯Ό ν™•μž₯된 λ””μŠ€ν¬ 크기만큼 ν‚€μš°κΈ°
# 3. ν•΄λ‹Ή νŒŒν‹°μ…˜μ˜ "파일 μ‹œμŠ€ν…œ" 크기λ₯Ό ν™•μž₯된 νŒŒν‹°μ…˜ 크기만큼 ν‚€μš°κΈ°
# (mount)
# 2TiB μ΄μƒμ˜ νŒŒν‹°μ…˜μ€ κΈ°μ‘΄ MBR λ°©μ‹μ˜ νŒŒν‹°μ…˜ν…Œμ΄λΈ”μ—μ„  인식을 λͺ»ν•¨. (fdiskμ—μ„œ μ§€μ›ν•˜λŠ” 방식)
# λ”°λΌμ„œ, GPT 방식 νŒŒν‹°μ…˜ν…Œμ΄λΈ”μ„ μƒμ„±ν•΄μ€˜μ•Όν•˜κΈ° λ•Œλ¬Έμ— parted μœ ν‹Έλ¦¬ν‹°λ₯Ό μ‚¬μš©ν•΄μ•Ό 함
# λ””μŠ€ν¬ μ—°κ²°
# λ””μŠ€ν¬, νŒŒν‹°μ…˜ 확인
fdisk -l
# λ””μŠ€ν¬ 정보 확인 (MBR or GPT)
parted /dev/sdb print
## Assume you are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
service ssh status
service ssh restart
vim ~/.bashrc
# HISTSIZE=-1 (μˆ˜μ •)
@rlaace423
rlaace423 / .vimrc
Last active August 31, 2023 19:44
vim κΈ°μ΄ˆμ„€μ •
" no VI compatible mode
set nocompatible
" indentation
set autoindent
filetype plugin indent on
" numbers to be saved commands, search patterns
set history=100
@rlaace423
rlaace423 / propose.sh
Created August 31, 2018 09:05
propose
./cleos.sh multisig propose givemoney '[{"actor": "grandlion111", "permission": "active"},{"actor": "grandlion112", "permission":"active"}]' '[{"actor": "babylion1234", "permission": "active"}]' eosio.token transfer '{"from":"babylion1234", "to":"lazylion1234", "quantity":"25.0000 EOS", "memo":"We love you"}' -p grandlion111@active
@rlaace423
rlaace423 / eos_permission.json
Created August 31, 2018 08:39
eos permission json
{
"threshold": 2,
"keys": [],
"accounts": [
{
"permission": {
"actor": "grandlion111",
"permission": "active"
},
"weight": 1