Skip to content

Instantly share code, notes, and snippets.

View minhoryang's full-sized avatar
๐Ÿ˜
Happy Today!

Minho Ryang minhoryang

๐Ÿ˜
Happy Today!
View GitHub Profile
@minhoryang
minhoryang / README.md
Created November 10, 2016 08:39
Dynamic Component Injection. [Dump of https://plnkr.co/edit/27x0eg?p=preview]

Angular2 Starter Plunker - Typescript - RC.0

A simple plunker demonstrating Angular2 usage:

  • Uses SystemJS + TypeScript to compile on the fly
  • Includes binding, directives, http, pipes, and DI usage.

For opening

@minhoryang
minhoryang / docker-compose.yaml
Created November 8, 2016 10:46
docker-compose.yaml for consul/scope/registrator
version: '2'
services:
consul:
image: consul:latest
network_mode: "host"
environment:
- 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}'
command:
- 'agent'
- '-server'

๋‚œ ๋ฌด์Šจ ํ”„๋กœ๊ทธ๋žจ์„ ์‚ฌ์šฉํ•˜๋Š”๊ฐ€?

usesthis.com

๋‚ด๊ฐ€ ์ •๊ธฐ๊ตฌ๋… ํ•˜๋Š” ์‚ฌ์ดํŠธ ์ค‘์— ์žฌ๋ฐŒ๋Š” ๊ณณ์ด ํ•˜๋‚˜ ์žˆ๋‹ค.

usesthis.com ๋ผ๊ณ , ์œ ๋ช…ํ•œ ์‚ฌ๋žŒ๋“ค์˜ ์ž‘์—…ํ™˜๊ฒฝ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ธ”๋กœ๊ทธ์ธ๋ฐ, 2009๋…„๋„์— Alex Payne๋กœ ์Šคํƒ€ํŠธ๋ฅผ ๋Š์–ด์„œ, Gabe Newell, Paul Graham์˜ ์ง€์›์‚ฌ๊ฒฉ์œผ๋กœ ์‹œ์ž‘๋œ, ๊ทธ์•ผ๋ง๋กœ ๋ง๋„์•ˆ๋˜๋Š” ์‚ฌ์ดํŠธ๋กœ์„œ, ๋ณด๋‹ค์‹œํ”ผ X์ฉŒ๋Š” ๋ถ„๋“ค์˜ TechStack์„ ์—ฟ๋ณผ ์ˆ˜ ์žˆ๋‹ค.

์ง€๊ธˆ๊นŒ์ง€ 700๋ช…์˜ ์ธํ„ฐ๋ทฐ๊ฐ€ ์˜ฌ๋ผ๊ฐ€์žˆ๊ณ , ๋งค์ฃผ ํ™”์š”์ผ ๋ชฉ์š”์ผ์— ์ƒˆ ๊ธ€์ด ์˜ฌ๋ผ์˜ค๋‹ˆ๊นŒ ๋ณผ๋งŒํ• ๊ฑฐ๋‹ค.

์šฐ์„  ๋‚ด๊ฐ€ ์ข‹์•„ํ•˜๋Š” ๋ช‡๋ถ„์„ ๋” ์ถ”๋ ค๋ณด์ž๋ฉด

@minhoryang
minhoryang / init.vim
Last active July 26, 2017 09:20
Minhoryang's Neovim HEAD .nvimrc
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
let g:NERDTreeChDirMode = 2
let g:NERDTreeMinimalUI = 1
let g:NERDTreeShowHidden = 1
let g:NERDTreeIgnore=['\.git$', '.DS_Store']
Plug 'Xuyuanp/nerdtree-git-plugin'

Deep Configs .osx

Warn! from here, weird thingy happened :)

used keywords:

Disable the sound effects on boot

Disable transparency in the menu bar and elsewhere on Yosemite

Set highlight color to green

@minhoryang
minhoryang / chrome-incognito.sh
Created September 5, 2016 09:28
Custom URL Scheme with LinCastor.app for Launching Chrome Incognito ("chrome-incognito://https://google.com")
#!/bin/sh
# the script will execute with following environmental variables defined:
# URL => my-http://myhost.domain.com:8080/mysite/a.html?search=blah#myanchor
# URL_SCHEME => my-http
# URL_HOST => myhost.domain.com
# URL_PORT => 8080
# URL_QUERY => ?search=blah
# URL_PATH => /mysite/a.html
# URL_FRAGMENT => #myanchor
# URL_VALUE => everything that comes after the 'scheme:'
@minhoryang
minhoryang / VMware ESXi 6.0u2 with Let's Encrypt.md
Last active September 4, 2016 07:47
VMware ESXi 6.0u2 with Let's Encrypt

VMware ESXi 6.0u2 ์— Let's Encrypt๋ฅผ ์„ค์น˜ํ•˜๊ธฐ

  1. ๋กœ๊ทธ์ธ ํ•  ๋•Œ๋งˆ๋‹ค ์ธ์ฆ์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ณด์ด๋Š”๊ฒŒ ๊ท€์ฐฎ์œผ๋‹ˆ๊นŒ ๋„๋ฉ”์ธ์„ ์ฃผ๊ณ  ์ธ์ฆ์„œ๋ฅผ ์ฃผ์ž.
  2. ๊ทธ๋ž˜์„œ ์ ์ ˆํ•œ ๋„๋ฉ”์ธ์„ ์ฃผ๊ณ  hostname๋„ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  3. ๋‹ค๋ฅธ Linux๋จธ์‹ ์—์„œ https://github.com/diafygi/acme-tiny ์— ๋”ฐ๋ผ์„œ account.key์™€ domain.key & domain.csr์„ ๋ฐœ๊ธ‰ํ•˜๊ณ 
  4. host challenge files์„ ์„œ๋น™ํ•˜๊ธฐ ์œ„ํ•ด esxi์— ssh์ ‘์†์„ ํ•ฉ๋‹ˆ๋‹ค.
  5. ESXi 6.0u2์—์„œ๋Š” /etc/vmware/rhttpproxy/endpoints.conf๊ฐ€ http proxy๋ฅผ ์ •์˜ํ•ด์ค๋‹ˆ๋‹ค.
  6. ์ด ์ค„์— ์ ์ ˆํ•œ ๋ถ€๋ถ„์— /.well-known/acme-challenge๋ฅผ ์ •์˜ํ•ด์ฃผ๊ณ ,

/.well-known/acme-challenge local 8000 redirect allow

@minhoryang
minhoryang / HelloAngularJS2.md
Created September 1, 2016 07:11
HelloAngularJS2.md

AngularJS 2 Kickstart ๋”ฐ๋ผ๊ฐ€๊ธฐ

์ž‘์—…ํ™˜๊ฒฝ์€ ๊ตฌ์ถ•๋˜์—ˆ๋‚˜?

- Environment MGMT
	- ndenv
- Project/Profile
	- https://github.com/mgechev/angular2-seed
- Dependency Packages MGMT
  • npm
@minhoryang
minhoryang / 0.README.md
Last active September 29, 2018 14:30 — forked from AilisObrian/0.README.md
Node.JS ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์„ฑ!

์ตœ์‹  Node.js ์„ค์น˜ ๋ฐ ์‚ฌ์šฉ

  • $๋กœ ์‹œ์ž‘ํ•˜๋Š” ์ค„์€, ํ•œ์ค„ ํ•œ์ค„ ๋ณต์‚ฌํ•ด์„œ ํ„ฐ๋ฏธ๋„์—์„œ ์‹คํ–‰ํ•ด์ฃผ์…”์•ผํ•ฉ๋‹ˆ๋‹ค.
  • ํ„ฐ๋ฏธ๋„์„ ์žฌ์‹œ์ž‘ ํ•˜์—ฌ์•ผ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ์žฌ์‹œ์ž‘ ํ›„, ํ˜„์žฌ ์ž‘์—…ํ•˜๋Š” ํด๋”๋กœ ๋‹ค์‹œ ์ด๋™ํ•ด์ฃผ์…”์•ผํ•ฉ๋‹ˆ๋‹ค.
@minhoryang
minhoryang / app.py
Last active August 18, 2016 08:31
public gist -> nikola @ minhoryang.github.io
from flask import Flask, redirect, url_for, session, request, jsonify
from flask_oauthlib.client import OAuth
PLACEHOLDER = None
app = Flask(__name__)
app.debug = True
app.secret_key = 'development'
app.config['SERVER_NAME'] = PLACEHOLDER
app.config['PREFERRED_URL_SCHEME'] = 'https'