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
@rlaace423
rlaace423 / zsh.sh
Last active Jan 2, 2020
install zsh & nvm
View zsh.sh
# install defaults
brew install zsh zsh-completions
# 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
# edit .zshrc
@rlaace423
rlaace423 / resize_partition.sh
Last active Nov 18, 2019
resize_partition.sh
View resize_partition.sh
########################################################
#
##### Overall Steps #####
#
# (shutdown)
# 1. ncloud 콘솔에서 "디스크" 크기 확장
# (boot, umount)
# 2. 디스크의 "파티션" 크기를 확장된 디스크 크기만큼 키우기
# 3. 해당 파티션의 "파일 시스템" 크기를 확장된 파티션 크기만큼 키우기
# (mount)
View mount_new_disk.sh
# Assume you are ROOT!
# 디스크 연결
# 디스크, 파티션 확인
fdisk -l
# 파티션 생성
fdisk /dev/xvdb
## m : (help)
View 00_ubuntu_bootstrap.sh
## Assume you are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
vim ~/.bashrc
# HISTSIZE=-1 (수정)
# HISTFILESIZE=-1 (수정)
# HISTTIMEFORMAT="%Y-%m-%d %T " (추가)
@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
Last active Nov 3, 2019
vim 기초설정
View vimrc
"Syntax
if has("syntax")
syntax on
endif
"indentation
set autoindent
set smartindent
"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/' )
You can’t perform that action at this time.