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 / gist:50647077604b46ed2c5240a73600d09d
Created August 17, 2016 09:46
[P4: nice to have] caddy + consul-template + docker-compose
# [P4: nice to have] caddy + consul-template + docker-compose
@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'
@minhoryang
minhoryang / 0.README.md
Last active September 29, 2018 14:30 — forked from AilisObrian/0.README.md
Node.JS 개발 환경 구성!

최신 Node.js 설치 및 사용

  • $로 시작하는 줄은, 한줄 한줄 복사해서 터미널에서 실행해주셔야합니다.
  • 터미널을 재시작 하여야 할 수도 있습니다.
    • 재시작 후, 현재 작업하는 폴더로 다시 이동해주셔야합니다.
@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 / 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.keydomain.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 / 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:'

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 / 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'

난 무슨 프로그램을 사용하는가?

usesthis.com

내가 정기구독 하는 사이트 중에 재밌는 곳이 하나 있다.

usesthis.com 라고, 유명한 사람들의 작업환경을 소개하는 블로그인데, 2009년도에 Alex Payne로 스타트를 끊어서, Gabe Newell, Paul Graham의 지원사격으로 시작된, 그야말로 말도안되는 사이트로서, 보다시피 X쩌는 분들의 TechStack을 엿볼 수 있다.

지금까지 700명의 인터뷰가 올라가있고, 매주 화요일 목요일에 새 글이 올라오니까 볼만할거다.

우선 내가 좋아하는 몇분을 더 추려보자면

@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'