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 / 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 / zsh_macos.sh
Last active August 27, 2023 16:03
install zsh & nvm
# install defaults
brew install zsh
# 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
# zsh-syntax-highlighting (명령어 색상 하이라이팅)
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++) {
@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 설치
@rlaace423
rlaace423 / create-bitcoin-address.ts
Created November 24, 2021 14:12
create bitcoin address (native nodejs)
import { createECDH } from 'crypto';
import { p2wpkh } from 'bitcoinjs-lib/src/payments';
import { bitcoin } from 'bitcoinjs-lib/src/networks';
import { Buffer } from 'buffer';
import { encode } from 'wif';
const network = bitcoin;
const ecdh = createECDH('secp256k1');
ecdh.generateKeys();
@rlaace423
rlaace423 / add-user.sh
Last active March 21, 2024 02:31
mysql docker 설정 (with MacOS M1 Chip)
mysql -u root -p
# 1. user 추가
create user '아이디'@'%' identified by '비밀번호';
grant all privileges on DB이름.* to '아이디'@'%';
또는
grant select, insert, update on DB이름.* to '아이디'@'%';
FLUSH PRIVILEGES;
@rlaace423
rlaace423 / .redis_password
Last active August 25, 2023 21:01
redis docker 설정
very_strong_password
sudo apt install fcitx-hangul
im-config 실행
OK -> Yes 를 눌러 선택화면 진입
fcitx 선택 후 OK -> OK
.bashrc 또는 .zshrc 에 아래 내용 추가
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
version: "3.9"
services:
nextcloud:
image: arm64v8/nextcloud
restart: always
container_name: nextcloud
ports:
- "10000:80"
networks: