Skip to content

Instantly share code, notes, and snippets.

View makkaba's full-sized avatar

Jeff Chung makkaba

  • Seoul, South Korea
View GitHub Profile

#nvm 설치 참고: https://github.com/creationix/nvm

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash

#설치 후 다음 스크립트 실행
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

#node 설치

@makkaba
makkaba / ror_start.md
Created November 4, 2016 02:28
EC2(ubuntu)&RubyOnRails

##apt-get 업데이트

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx

##rvm 설치 후 편하게 설치

curl -L get.rvm.io | bash -s stable
//실패 메세지. 다음과 같은 힌트 명령어 입력 후 다시 시도.
@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>
@makkaba
makkaba / hello_world.js
Created January 18, 2017 16:32
node.js 헬로월드
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8080, 'localhost');
console.log('Server running at http://localhost:8080/');
@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
@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 / 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}")]
Resources:
AWSEBAutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
HealthCheckType: ELB
HealthCheckGracePeriod: 600
option_settings:
- namespace: aws:autoscaling:launchconfiguration
option_name: IamInstanceProfile
@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 설치

@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