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 / 01_ubuntu_install_winehq.sh
Last active March 1, 2021 06:19
wine 및 카카오톡 설치
## https://wiki.winehq.org/Ubuntu
## 위 링크를 통해 아래 설치 방법이 최신인지, 버전 or OS와 일치하는지 확인할 것!!
# apt 저장소 추가 (운영체제 별 상이!!)
sudo sh -c 'echo "deb https://dl.winehq.org/wine-builds/ubuntu/ focal main" > /etc/apt/sources.list.d/winehq.list'
# gpg key 추가
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/winehq.gpg > /dev/null
# winehq stable 설치
## Assume you are ROOT!
vim /etc/ssh/sshd_config
# ClientAliveInterval 300
# ClientAliveCountMax 6
service ssh status
service ssh restart
vim ~/.bashrc
# HISTSIZE=-1 (수정)
# 2TiB 이상의 파티션은 기존 MBR 방식의 파티션테이블에선 인식을 못함. (fdisk에서 지원하는 방식)
# 따라서, GPT 방식 파티션테이블을 생성해줘야하기 때문에 parted 유틸리티를 사용해야 함
# 디스크 연결
# 디스크, 파티션 확인
fdisk -l
# 디스크 정보 확인 (MBR or GPT)
parted /dev/sdb print
@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++) {
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 / resize_partition.sh
Last active November 18, 2019 06:37
resize_partition.sh
########################################################
#
##### Overall Steps #####
#
# (shutdown)
# 1. ncloud 콘솔에서 "디스크" 크기 확장
# (boot, umount)
# 2. 디스크의 "파티션" 크기를 확장된 디스크 크기만큼 키우기
# 3. 해당 파티션의 "파일 시스템" 크기를 확장된 파티션 크기만큼 키우기
# (mount)
@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 / 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 / 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/' )
  nodeos keosd
기본 위치 (홈)/.local/share/eosio/nodeos/ (홈)/eosio-wallet/
데이터 위치 (기본 위치)/data/ (기본 위치)
설정 파일 (기본 위치)/config/config.ini (기본 위치)/config.ini
제네시스 파일   (기본 위치)/config/genesis.json
기본 포트 8888 8900