Skip to content

Instantly share code, notes, and snippets.

View yongjulejule's full-sized avatar
✍️

Yongjun Lee yongjulejule

✍️
View GitHub Profile
@yongjulejule
yongjulejule / env_match_test.sh
Last active December 20, 2022 09:12
check .env (dotenv) file match with sample file
#!/usr/bin/env bash
ENV=.env
ENV_SAMPLE=.env.sample
PROJECT_ROOT=$(git rev-parse --show-toplevel)
ENV_FILES=($(find ${PROJECT_ROOT} -name "${ENV}" | sort))
ENV_SAMPLE_FILES=($(find ${PROJECT_ROOT} -name "${ENV_SAMPLE}" | sort))
RED='\033[0;31m'
@yongjulejule
yongjulejule / vim
Created September 2, 2022 02:34
init.vim
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive' "use git things in vim
Plug 'tpope/vim-sensible' "required
Plug 'preservim/nerdtree' "filetree
Plug 'dense-analysis/ale' "syntax check
Plug 'preservim/nerdcommenter' "comment
Plug 'nathanaelkane/vim-indent-guides' "highlight indent lines
Plug 'vim-airline/vim-airline' "fancy status bar
Plug 'vim-airline/vim-airline-themes' "add airline theme
Plug 'airblade/vim-gitgutter' "see code changes
@yongjulejule
yongjulejule / vimium-options.json
Last active June 27, 2022 02:13
Vimium setting
{
"settingsVersion": "1.67",
"exclusionRules": [],
"filterLinkHints": false,
"waitForEnterForFilteredHints": true,
"hideHud": false,
"keyMappings": "# Insert your preferred key mappings here.\nunmap x\nmap R reload hard",
"linkHintCharacters": "sadfjklewcmpgh",
"linkHintNumbers": "0123456789",
"newTabUrl": "about:newtab",
@yongjulejule
yongjulejule / vscode_setup
Last active February 17, 2022 11:29
vscode autoinstall script in 42school
#!/bin/bash
FLAG="$HOME/goinfre/Applications/VSCode-darwin-universal.zip"
if [ ! -e "$FLAG" ]; then
mkdir -p $HOME/goinfre/Applications
curl -L -o $FLAG https://code.visualstudio.com/sha/download\?build\=stable\&os\=darwin-universal
open $FLAG
else
echo "already downloaded"