Skip to content

Instantly share code, notes, and snippets.

View killi18n's full-sized avatar
:electron:

killi18n killi18n

:electron:
View GitHub Profile
@killi18n
killi18n / django-DRF.md
Created May 14, 2019 02:20
django drf tutorial
  1. READY
$ pip install virtualenv
$ cd PROJECT_ROOT/
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install django djangorestframework django-rest-swagger
$ pip freeze > requirements.txt
@killi18n
killi18n / eslint.md
Last active April 17, 2019 05:54
set eslint on node.js and create-react-app react project

node project

$ yarn add eslint-config-airbnb
$ npx install-peerdeps --dev eslint-config-airbnb

example - .eslintrc

@killi18n
killi18n / setup-mongodb-for-remote-access.md
Last active March 19, 2019 05:50
MongoDB Remote Access

Setup MongoDB for Remote Access

This guide is tested on AWS EC2 Ubuntu.

modify conf file

sudo vim /etc/mongod.conf
@killi18n
killi18n / serverless-setting.md
Created March 19, 2019 03:24
Serverless initial setting guide

I write this markdown guide after I saw this article. https://velopert.com/3549

Serverless Initial Setting Guide

install serverless cli via npm or yarn and set aws IAM credentials locally

yarn global add serverless
serverless config credentials --provider aws --key AccessKeyID --secret SecretAccessKey
@killi18n
killi18n / install fira family on mac.md
Created February 20, 2019 03:53
mac cask install fonts
brew tap caskroom/fonts
brew cask install \
  font-fira-code \
  font-fira-mono \
  font-fira-mono-for-powerline \
  font-fira-sans
@killi18n
killi18n / side bar height - css.md
Created February 15, 2019 01:11
side bar fix height to 100% example
.SideBarWrapper {
  background: $oc-gray-0;
  min-height: 100vh;
  height: 100%;

  overflow-y: scroll;
  @include material-shadow(3, 1.5);

 padding: 1rem;
@killi18n
killi18n / use github api.md
Last active February 20, 2019 17:23
how to use github api with authentications

Github API 사용법

  1. 깃헙 세팅의 application 탭에서 OAuth application을 하나 만든다.
<html>
  <head>
  </head>
  <body>
 
@killi18n
killi18n / react-hub-tutorial.md
Last active February 18, 2019 07:57
react hub developing walkthrough
@killi18n
killi18n / docker mysql.md
Created February 11, 2019 09:27
install docker mysql
  1. docker search mysql - mysql docker image 검색
  2. docker pull mysql:5.6 - mysql docker image 다운로드
  3. docker images - 다운로드된 docker image 확인
  4. docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=YOUR_PASSWORD --name mysql_dev mysql:5.6 --default-authentication-plugin=mysql_native_password
    • -p 3306:3306 호스트의 3306과 컨테이너 3306 포트를 연결한다.
    • -e MYSQL_ROOT_PASSWORD root의 password를 설정
    • --name mysql_test 컨테이너 이름을 mysql_test로 지정
  5. docker ps - 현재 동작하고 있는 컨테이너를 확인
  6. docker exec -i -t mysql_test bash - mysql 컨테이너 접속
  7. mysql -u root -p - mysql cli접속 root password 를 입력하고 접속