Skip to content

Instantly share code, notes, and snippets.

View b6pzeusbc54tvhw5jgpyw8pwz2x6gs's full-sized avatar

Alfred b6pzeusbc54tvhw5jgpyw8pwz2x6gs

View GitHub Profile

Keybase proof

I hereby claim:

  • I am b6pzeusbc54tvhw5jgpyw8pwz2x6gs on github.
  • I am b6pzeusbc54tvhw5 (https://keybase.io/b6pzeusbc54tvhw5) on keybase.
  • I have a public key ASBjuG43VXp7Z7IpTG35LdYkoc8sf5gAAuPXZ7HU2Re3ywo

To claim this, I am signing this object:

@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / settings.json
Created February 22, 2019 04:31
My VS Code user setting
{
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.autoIndent": false,
"python.linting.pylintPath": "${workspaceFolder}/packages-for-code/bin/pylint",
"python.envFile": "${workspaceFolder}/.envrc.code",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / hyperkey-and-alone-modified.json
Last active March 1, 2019 14:10
~/.config/karabiner/assets/complex_modifications/
{
"title": "alone modified key (@aluc)",
"rules": [
{
"description": "Change left control to esc if alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
const prioritized = {
error: 0,
warn: 1,
info: 2,
verbose: 3,
debug: 4,
silly: 5
}
let level = 'debug'
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / gist:cf7d9bcb3b5cbf4d61bb6de0e20dd39c
Created December 30, 2020 01:35
리눅스 유저 생성 및 개발 환경 프로비저닝
$ sudo adduser newuesrname
# newuesrname으로 접속해서,
$ ssh-keygen
# ansible-playbook을 위해 admin키를 임시로 등록해둠
$ echo "<admin id_rsa.pub>" >> ~/.ssh/authorized_keys
# ansible-playbook을 위해 sudo 권한 임시로 부여
$ sudo usermod -aG sudo newuesrname
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / gist:fb0b45f075361fc2ef91218dc1862ee9
Last active July 17, 2021 17:59
Windows auto hot key on VS Code for Mac User
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;https://previous-on-johnpark82.tistory.com/2460791
;shift-space 한영변환. 하드웨어 키보드 레이아웃이 "한글 키보드(103/106키)" 이어야한다.
+space::Send, {vk15sc138}
; ! Alt
npx artillery quick --duration 300 --rate 2 -n 2 <url> --output output.json
npx artillery report output.json
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / gist:970bf5b96006303cd4795dab17bfaf10
Last active May 21, 2024 10:18
VSCode remote ssh 접속 안되는 문제 해결 방법
#!/bin/bash
# Script to update VScode
# from https://github.com/Sheridan-Tech/Update_VScode
# ssh로 붙는 target server에서 아래 실행:
#grab the current commit id
COMMIT_ID=`ls -At ~/.vscode-server/bin | head -n 1`
cd ~/.vscode-server/bin/$COMMIT_ID
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / README.md
Created August 26, 2021 11:59
docker run nginx with allowing cors
$ docker run -p8090:80 --rm -v $PWD:/usr/share/nginx/html:ro -v $PWD/default.conf:/etc/nginx/conf.d/default.conf:ro -v $PWD/mime.types:/etc/nginx/mime.types:ro nginx
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / README.md
Created October 5, 2021 12:14
git-p4 사용시 한글 커밋 메시지가 깨지는 문제 해결 방법

오래된 방법

개선 방법

  • 일단 깨진 상태로 clone 받은 후 아래의 filter-branch 명령을 사용하여 해결 가능.
$ git filter-branch -f --commit-filter '
 author_type=$( echo $GIT_AUTHOR_NAME | file -b --mime-encoding - )