Skip to content

Instantly share code, notes, and snippets.

View myungseokang's full-sized avatar
🍀
Good Luck

강명서 (Myungseo Kang) myungseokang

🍀
Good Luck
View GitHub Profile
@myungseokang
myungseokang / vim-heroku.sh
Created September 16, 2017 07:34 — forked from dvdbng/vim-heroku.sh
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@myungseokang
myungseokang / GitCommitEmoji.md
Created August 27, 2017 15:20 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@myungseokang
myungseokang / uwsgi.ini
Last active December 25, 2018 21:15 — forked from puilp0502/uwsgi.ini
Sample uwsgi ini configuration
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /home/ubuntu/(project-dir)
# Django's wsgi file
module = (project-name).wsgi:application
# the virtualenv (full path)
home = /home/ubuntu/.venv/(venv-name)/
@myungseokang
myungseokang / deploy_with_ebcli3_on_circleci.md
Created April 11, 2017 05:27 — forked from RobertoSchneiders/deploy_with_ebcli3_on_circleci.md
Settings to deploy to AWS Elastic Beanstalk on CircleCi (EB Cli 3)

This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI.

Configure Environments Variables

On Project Settings > Environment Variables add this keys:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
    The aws user must have the right permissions. This can be hard, maybe, this can help you.

Create a bash script to create the eb config file

# Pyenv 설치 (https://github.com/yyuu/pyenv-virtualenv)
brew install pyenv-virtualenv
# ~/.bash_profile 파일에 아래 내용 추가
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

# 사용할 Python 버전을 미리 깔고 
pyenv install 3.6.0

자신의 git 프로젝트 폴더 안 .git/hooks/pre-commit 파일에 아래 내용을 넣으세요.

#!/bin/sh
FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -e '\.py$')
if [ -n "$FILES" ]; then
    flake8 $FILES
fi
@myungseokang
myungseokang / django-test-easy-and-fast.md
Created December 16, 2016 07:57 — forked from perhapsspy/django-test-easy-and-fast.md
Django에서 Test 쉽고 빠르게 하기