Skip to content

Instantly share code, notes, and snippets.

Sam (Sangho Kim) rlaace423

Block or report user

Report or block rlaace423

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mount_new_disk.sh
# Assume you are ROOT!
# 디스크 연결
# 디스크, 파티션 확인
fdisk -l
# 파티션 생성
fdisk /dev/xvdb
## m : (help)
View ubuntu_bootstrap.sh
## Assume your are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
vim ~/.bashrc
# HISTSIZE=-1
# HISTFILESIZE=-1
# alias gst='git status'
@rlaace423
rlaace423 / .eslintrc.js
Created Mar 29, 2019
eslint, gulp 설정 및 관련 설정파일
View .eslintrc.js
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
},
extends: 'airbnb-base',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
@rlaace423
rlaace423 / vimrc
Created Mar 10, 2019
vim 기초설정
View vimrc
"Syntax
if has("syntax")
syntax on
endif
"indentation
set autoindent
set cindent
"line number
@rlaace423
rlaace423 / bash_profile
Created Mar 10, 2019
macOS bash_profile 설정
View bash_profile
export CLICOLOR=1
#export LSCOLORS=DxFxCxGxBxegedabagaced
export LSCOLORS=ExFxCxDxBxegedabagacad
alias ll='ls -al'
alias gst='git status'
View propose.sh
./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
View eos_permission.json
{
"threshold": 2,
"keys": [],
"accounts": [
{
"permission": {
"actor": "grandlion111",
"permission": "active"
},
"weight": 1
@rlaace423
rlaace423 / wheel_reverse.sh
Created Aug 6, 2018
mouse wheel direction toggle script for Linux
View wheel_reverse.sh
#!/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/' )
View resign_eosio.sh
./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",
View eos_stop.sh
#!/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 파일 안에 정의!!!
You can’t perform that action at this time.