Skip to content

Instantly share code, notes, and snippets.

View hongjonghwa's full-sized avatar

hongjonghwa hongjonghwa

View GitHub Profile
# clear-history
rm -rf .git
git init
git add .
git commit -m "initial commit"
git remote add origin [repoUrl]
git push --force origin master
# pull
rm -rf * .git*
# editorconfig.org
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
{
"eslint.validate": [
"javascript", "javascriptreact", "html",
{ "language": "vue", "autoFix": true }
],
"eslint.autoFixOnSave": true,
"editor.tabSize": 2,
"prettier-eslint.eslintIntegration": true,
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
@hongjonghwa
hongjonghwa / [linux]sync-folder.sh
Created January 29, 2020 23:56
rsync 명령어
## A folder into B
rsync -avu --delete "/home/user/A" "/home/user/B"
## Contents of folder A and B
rsync -avu --delete "/home/user/A/" "/home/user/B"
@hongjonghwa
hongjonghwa / .vimrc
Created January 27, 2020 13:06
vimrc 내 설정
" Syntax Highlighting
if has("syntax")
syntax on
endif
set autoindent
set cindent
set nu
@hongjonghwa
hongjonghwa / [ubuntu]ros-keys-to-trusted-gpg-file.sh
Last active January 27, 2020 13:05
ROS 키를 trusted gpg 파일로 변환
gpg --keyserver 'hkp://keyserver.ubuntu.com:80' --recv C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg --export --armor C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | gpg --dearmor > ros.gpg
sudo sh -c 'cat ros.gpg > /etc/apt/trusted.gpg.d/ros.gpg'
rm ros.gpg
rm -r ~/.gnupg