$
로 시작하는 줄은, 한줄 한줄 복사해서 터미널에서 실행해주셔야합니다.- 터미널을 재시작 하여야 할 수도 있습니다.
- 재시작 후, 현재 작업하는 폴더로 다시 이동해주셔야합니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [P4: nice to have] caddy + consul-template + docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
- 로그인 할 때마다 인증서 오류가 보이는게 귀찮으니까 도메인을 주고 인증서를 주자.
- 그래서 적절한 도메인을 주고 hostname도 수정했습니다.
- 다른 Linux머신에서 https://github.com/diafygi/acme-tiny 에 따라서
account.key
와domain.key
&domain.csr
을 발급하고 - host challenge files을 서빙하기 위해 esxi에 ssh접속을 합니다.
- ESXi 6.0u2에서는
/etc/vmware/rhttpproxy/endpoints.conf
가 http proxy를 정의해줍니다. - 이 줄에 적절한 부분에
/.well-known/acme-challenge
를 정의해주고,
/.well-known/acme-challenge local 8000 redirect allow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 :)
Disable the sound effects on boot
Disable transparency in the menu bar and elsewhere on Yosemite
Set highlight color to green
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 라고, 유명한 사람들의 작업환경을 소개하는 블로그인데, 2009년도에 Alex Payne로 스타트를 끊어서, Gabe Newell, Paul Graham의 지원사격으로 시작된, 그야말로 말도안되는 사이트로서, 보다시피 X쩌는 분들의 TechStack을 엿볼 수 있다.
지금까지 700명의 인터뷰가 올라가있고, 매주 화요일 목요일에 새 글이 올라오니까 볼만할거다.
우선 내가 좋아하는 몇분을 더 추려보자면
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
consul: | |
image: consul:latest | |
network_mode: "host" | |
environment: | |
- 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' | |
command: | |
- 'agent' | |
- '-server' |