Skip to content

Instantly share code, notes, and snippets.

View makkaba's full-sized avatar

Jeff Chung makkaba

  • Seoul, South Korea
View GitHub Profile
@makkaba
makkaba / install-docker-compose.sh
Created August 23, 2019 07:44 — forked from benfogel/install-docker-compose.sh
Installing docker-compose on Amazon Linux AMI
sudo yum update
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
sudo chmod +x /usr/local/bin/docker-compose
sudo service docker start
sudo chkconfig docker on
@makkaba
makkaba / server.conf
Created December 29, 2018 07:45 — forked from iliakan/server.conf
Nginx configuration for separated frontend and backend endpoints
upstream example-webpack {
server 127.0.0.1:8080;
}
upstream example-backend {
server 127.0.0.1:3000;
}
server {
listen 80;
@makkaba
makkaba / git_overwrite_with_remote.md
Created December 18, 2018 01:32
git remote로 전부 덮어씌우기

git fetch --all git reset --hard origin/master git pull origin master

@makkaba
makkaba / install_docker.md
Created December 12, 2018 05:55
install docker on linux redhat

sudo yum install -y docker

sudo service docker start

sudo usermod -a -G docker ec2-user

//재부팅 후

docker info

@makkaba
makkaba / node_setup_2018.md
Last active June 10, 2019 05:00
node_setup_2018

설치 (install)

npm install --save cors express cors body-parser lodash mysql
npm install --save-dev nodemon  
npm install --save-dev @babel/core @babel/preset-env @babel/cli @babel/node
@makkaba
makkaba / react_setting_2018.md
Last active February 26, 2019 04:18
react setting 2018

이것 저것 해보면서 모아봤습니다.

save-dev 설치

npm install --save-dev @babel/core @babel/preset-env @babel/preset-react @babel/plugin-proposal-class-properties babel-loader css-loader html-loader html-webpack-plugin node-sass react react-dom react-hot-loader sass-loader style-loader webpack webpack-cli webpack-dev-server

save 설치

Resources:
AWSEBAutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
HealthCheckType: ELB
HealthCheckGracePeriod: 600
option_settings:
- namespace: aws:autoscaling:launchconfiguration
option_name: IamInstanceProfile
@makkaba
makkaba / servicestack redis
Created February 8, 2018 04:47 — forked from puleos/servicestack redis
Service Stack Service Implementation w/ Redis Caching
using System;
using NBTY.Core.DTO.Puritan;
using ServiceStack.CacheAccess;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface;
using ServiceStack.ServiceInterface.ServiceModel;
namespace Puritan.Web.Services.Catalog.ServiceStack
{
[RestService("/category/{LegacyId}")]
@makkaba
makkaba / create_config_file_example.sh
Created November 4, 2017 03:49
커맨드라인 스크립트로 파일 만들기
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
@makkaba
makkaba / composer.sh
Created February 3, 2017 11:09
composer 명령어 변경
cd ~
sudo curl -sS https://getcomposer.org/installer | sudo php
sudo mv composer.phar /usr/local/bin/composer
sudo ln -s /usr/local/bin/composer /usr/bin/composer
sudo composer install
sudo composer update