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 / 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 / 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",
#!/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 ํŒŒ์ผ ์•ˆ์— ์ •์˜!!!
ย  nodeos keosd
๊ธฐ๋ณธ ์œ„์น˜ (ํ™ˆ)/.local/share/eosio/nodeos/ (ํ™ˆ)/eosio-wallet/
๋ฐ์ดํ„ฐ ์œ„์น˜ (๊ธฐ๋ณธ ์œ„์น˜)/data/ (๊ธฐ๋ณธ ์œ„์น˜)
์„ค์ • ํŒŒ์ผ (๊ธฐ๋ณธ ์œ„์น˜)/config/config.ini (๊ธฐ๋ณธ ์œ„์น˜)/config.ini
์ œ๋„ค์‹œ์Šค ํŒŒ์ผ ย  (๊ธฐ๋ณธ ์œ„์น˜)/config/genesis.json
๊ธฐ๋ณธ ํฌํŠธ 8888 8900