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
#!/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
@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 / resize_partition.sh
Last active November 18, 2019 06:37
resize_partition.sh
########################################################
#
##### Overall Steps #####
#
# (shutdown)
# 1. ncloud 콘솔에서 "디스크" 크기 확장
# (boot, umount)
# 2. 디스크의 "파티션" 크기를 확장된 디스크 크기만큼 키우기
# 3. 해당 파티션의 "파일 시스템" 크기를 확장된 파티션 크기만큼 키우기
# (mount)
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 / 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++) {
# 2TiB 이상의 파티션은 기존 MBR 방식의 파티션테이블에선 인식을 못함. (fdisk에서 지원하는 방식)
# 따라서, GPT 방식 파티션테이블을 생성해줘야하기 때문에 parted 유틸리티를 사용해야 함
# 디스크 연결
# 디스크, 파티션 확인
fdisk -l
# 디스크 정보 확인 (MBR or GPT)
parted /dev/sdb print