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 / 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 / .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 / 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
//실패 메세지. 다음과 같은 힌트 명령어 입력 후 다시 시도.

#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 설치