This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 (명령어 색상 하이라이팅) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################## | |
# | |
##### Overall Steps ##### | |
# | |
# (shutdown) | |
# 1. ncloud 콘솔에서 "디스크" 크기 확장 | |
# (boot, umount) | |
# 2. 디스크의 "파티션" 크기를 확장된 디스크 크기만큼 키우기 | |
# 3. 해당 파티션의 "파일 시스템" 크기를 확장된 파티션 크기만큼 키우기 | |
# (mount) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2TiB 이상의 파티션은 기존 MBR 방식의 파티션테이블에선 인식을 못함. (fdisk에서 지원하는 방식) | |
# 따라서, GPT 방식 파티션테이블을 생성해줘야하기 때문에 parted 유틸리티를 사용해야 함 | |
# 디스크 연결 | |
# 디스크, 파티션 확인 | |
fdisk -l | |
# 디스크 정보 확인 (MBR or GPT) | |
parted /dev/sdb print |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Assume you are ROOT! | |
vim /etc/ssh/sshd_config | |
# ClientAliveInterval 300 | |
# ClientAliveCountMax 6 | |
service ssh status | |
service ssh restart | |
vim ~/.bashrc | |
# HISTSIZE=-1 (수정) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" no VI compatible mode | |
set nocompatible | |
" indentation | |
set autoindent | |
filetype plugin indent on | |
" numbers to be saved commands, search patterns | |
set history=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"threshold": 2, | |
"keys": [], | |
"accounts": [ | |
{ | |
"permission": { | |
"actor": "grandlion111", | |
"permission": "active" | |
}, | |
"weight": 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
device_name="Logitech M705" | |
prop_name="Natural Scrolling Enabled" | |
device_number=$( xinput | grep "${device_name}" | awk -F '\t' '{ print $2 }' | awk -F '=' '{ print $2 }' | tr -d '[:blank:]' ) | |
echo "device number is $device_number" | |
prop_number=$( xinput list-props $device_number | grep "${prop_name}" | head -n 1 | sed 's/.*(\(.*\)).*/\1/' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./cleos.sh push action eosio updateauth '{"account": "eosio", "permission": "owner", "parent": "", "auth": {"threshold": 1, "keys": [], "waits": [], "accounts": [{"weight": 1, "permission": {"actor": "eosio.prods", "permission": "active"}}]}}' -p eosio@owner | |
./cleos.sh push action eosio updateauth '{"account": "eosio", "permission": "active", "parent": "owner", "auth": {"threshold": 1, "keys": [], "waits": [], "accounts": [{"weight": 1, "permission": {"actor": "eosio.prods", "permission": "active"}}]}}' -p eosio@active | |
./cleos.sh push action eosio updateauth '{"account": "eosio.bpay", "permission": "owner", "parent": "", "auth": { "threshold": 1, "keys": [], "waits": [], "accounts": [{ "weight": 1, "permission": {"actor": "eosio", "permission": "active"} }] } } ' -p eosio.bpay@owner | |
./cleos.sh push action eosio updateauth '{"account": "eosio.bpay", "permission": "active", "parent": "owner", "auth": { "threshold": 1, "keys": [], "waits": [], "accounts": [{ "weight": 1, "permission": {"actor": "eosio", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NODEOS_ROOT_DIR=/root/eos_data/nodeos | |
CONFIG_DIR=/root/eos_data/nodeos/config | |
DATA_DIR=/root/eos_data/nodeos/data | |
LOG_DIR=/root/eos_data/nodeos/log | |
## WALLET DIR 은 config.ini 파일 안의 datadir 로 정의!!! | |
## plugin들도 config.ini 파일 안에 정의!!! | |
## server address 도 config.ini 파일 안에 정의!!! |