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;
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 / .htaccess
Created November 7, 2016 01:38 — forked from leocaseiro/.htaccess
Angular html5Mode apache working in a subdirectory /app using ngRoute
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) /app/index.html [NC,L]
</IfModule>