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
  nodeos keosd
기본 위치 (홈)/.local/share/eosio/nodeos/ (홈)/eosio-wallet/
데이터 위치 (기본 위치)/data/ (기본 위치)
설정 파일 (기본 위치)/config/config.ini (기본 위치)/config.ini
제네시스 파일   (기본 위치)/config/genesis.json
기본 포트 8888 8900
#!/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 파일 안에 정의!!!
#!/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 파일 안에 정의!!!
@rlaace423
rlaace423 / resign_eosio.sh
Created August 2, 2018 11:37
Resign EOSIO
./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",
@rlaace423
rlaace423 / wheel_reverse.sh
Created August 6, 2018 17:02
mouse wheel direction toggle script for Linux
#!/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/' )
@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
@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 / .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
## Assume you are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
service ssh status
service ssh restart
vim ~/.bashrc
# HISTSIZE=-1 (수정)
# 2TiB 이상의 파티션은 기존 MBR 방식의 파티션테이블에선 인식을 못함. (fdisk에서 지원하는 방식)
# 따라서, GPT 방식 파티션테이블을 생성해줘야하기 때문에 parted 유틸리티를 사용해야 함
# 디스크 연결
# 디스크, 파티션 확인
fdisk -l
# 디스크 정보 확인 (MBR or GPT)
parted /dev/sdb print