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 questions
contructor 내부 @Inject가 붙은 private readonly 파라미터는
attribute를 클래스 내부에 따로 선언하지 않아도 자동으로 되는건지? (단축된 문법인지?)
A: 그런가봄!
--> 이게 provider의 inject 방법인지?
* test/ 디렉토리 삭제 이유?
* jest-e2e.json --> 확장자 변경 이유?
*! 커밋 전 "무조건" 테스트를 전부 통과하게 하고 싶다면, ; 대신 && 쓰면 될듯
@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 ubuntu_bootstrap.sh
## Assume you are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
vim ~/.bashrc
# HISTSIZE=-1
# HISTFILESIZE=-1
# alias gst='git status'
@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
View mount_new_disk.sh
# Assume you are ROOT!
# 디스크 연결
# 디스크, 파티션 확인
fdisk -l
# 파티션 생성
fdisk /dev/xvdb
## m : (help)
@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 / 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.