This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 계정 추가 | |
use admin | |
db.createUser({ user: 'root', pwd: 'Hello#$', roles: ['root'] }); | |
use bitcore | |
db.createUser({ user: 'bitcore', pwd: 'Hello2024#$', roles: ['dbOwner'] }); | |
# 비밀번호 변경 | |
db.changeUserPassword(username, password) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -ND 1080 root@somewhere-ssh-server -p 22 | |
# 이후 창을 끄지 말고 켜둔다 | |
# 이제 MacOS, datagrip의 ssh 터널 설정 등에서 | |
# localhost, 1080 포트로 SOCK5 프록시 서버에 입력하면 됨 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" no VI compatible mode | |
set nocompatible | |
" indentation | |
set autoindent | |
filetype plugin indent on | |
" numbers to be saved commands, search patterns | |
set history=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
nextcloud: | |
image: arm64v8/nextcloud | |
restart: always | |
container_name: nextcloud | |
ports: | |
- "10000:80" | |
networks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 (명령어 색상 하이라이팅) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
very_strong_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./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", |
NewerOlder