Skip to content

Instantly share code, notes, and snippets.

@Epikem
Epikem / cloudSettings
Last active May 14, 2020 14:46
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-16T01:57:17.042Z","extensionVersion":"v3.4.3"}
@Epikem
Epikem / cloudSettings
Last active May 3, 2019 07:02
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-05-03T07:02:11.812Z","extensionVersion":"v3.2.9"}
@Epikem
Epikem / command.ps1
Last active April 6, 2018 00:34
[Run powershell command for each file in current directory] 파워쉘에서 현재 폴더의 모든 파일에 대해 명령 수행하기. #powershell
ls -file | % {<command> $_.fullname}
scoop update *
const crypto = require('crypto');
function hash (password) {
return crypto.createHmac('sha256', secret).update(password).digest('hex');
}
@Epikem
Epikem / site.txt
Created February 21, 2018 16:44
Increases indentation on the file tree and adds some lines to each directory/file. https://gist.github.com/jakewtaylor/e92acd697409e53a73ebf8e0145d4c28
https://gist.github.com/jakewtaylor/e92acd697409e53a73ebf8e0145d4c28
@Epikem
Epikem / pns.txt
Created February 19, 2018 13:05
Windows python unicode problem (chcp 65001). Windows python throws error when I change codepage to unicode (chcp 65001) and try to use python.
Problem :
Windows python throws error when I change codepage to unicode (chcp 65001) and try to use python.
PS C:\Program Files\PowerShell\6.0.0-rc> pip list
Traceback (most recent call last):
File "d:\python2.7.13\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "d:\python2.7.13\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "D:\Python2.7.13\Scripts\pip.exe\__main__.py", line 5, in <module>
@Epikem
Epikem / command.txt
Last active February 19, 2018 13:09
Windows powershell telnet doesn't show characters. 글자 제대로 안보일때 사용. 그래도 글자 잘 안보이지만 안쓰면 아예 안보임. turn on echo
telnet
set localecho
open <host ip> <port>
@Epikem
Epikem / instruction.txt
Last active February 19, 2018 13:12
How to : Use vscode as Github sequence editor Vim 대신에 사용하려다 찾음. From : https://stackoverflow.com/questions/30024353/how-to-use-visual-studio-code-as-default-editor-for-git/36644561
From :
https://stackoverflow.com/questions/30024353/how-to-use-visual-studio-code-as-default-editor-for-git/36644561
1. 터미널 열기.
2. code --help 정상 출력되는지 확인.
3. git config --global core.editor "code --wait"
4. git config --global -e
5. 열리는 깃헙 글로벌 에디터 설정에 다음 내용 추가.
[diff]
_