Skip to content

Instantly share code, notes, and snippets.

😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
Block or report user

Report or block minhoryang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@minhoryang
minhoryang / build_dm_awsec2.sh
Last active Aug 12, 2017 — forked from pahud/build_dm_awsec2.sh
build your docker-machine on AWS EC2 instance
View build_dm_awsec2.sh
#!/bin/bash
machine=$(python -c "import uuid;print(uuid.uuid4())")
# NEEDED: AmazonEC2FullAccess, AmazonEC2SpotFleetRole
AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
AWS_DEFAULT_REGION=$(aws configure get region)
AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
VPC=$(aws ec2 describe-vpcs | jq -r '.Vpcs[0].VpcId')
View wtf.py
import sys
def func_name(_):
return sys._getframe(1).f_code.co_name
def line_number(_):
return str(sys._getframe(1).f_lineno)
def file_name(_):
return sys._getframe(1).f_code.co_filename
@minhoryang
minhoryang / haproxy.cfg
Created Jul 25, 2017 — forked from jpawlowski/haproxy.cfg
Geeking out with HAproxy on pfSense: The ultimate port 443 TLS/SSL router | http://loredo.me/post/116633549315/geeking-out-with-haproxy-on-pfsense-the-ultimate
View haproxy.cfg
global
maxconn 2000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
chroot /tmp/haproxy_chroot
daemon
tune.ssl.default-dh-param 2048
# Modern browser compatibility only as mentioned here:
View gist:0e80fb879558af3441eca648ec49d91c
[chromeIPass](https://chrome.google.com/webstore/detail/ompiailgknfdndiefoaoiligalphfdae)
[keeweb](https://github.com/keeweb/keeweb)
[keepassXC](#)
Google Drive.
@minhoryang
minhoryang / concept.md
Last active May 23, 2017
Semver based API Gateway?
View concept.md
  • api.corp.domain.local/$service/$semver/... -> 307 Temporary Redirect to SEMVER Matched Server.

  • api.corp.domain.local/frontend/^2.0.0/... $service: frontend, $semver: ^2.0.0

  • api.corp.domain.local/frontend/~2.0.0/... $service: frontend, $semver: ~2.0.0

  • api.corp.domain.local/frontend/2.0.0/...

  • api.corp.domain.local/frontend/2.0/...

  • api.corp.domain.local/frontend/2/...

  • $service.api.corp.domain.local/$semver/...

  • frontend.api.corp.domain.local/2.0.0/...

  • frontend.api.corp.domain.local/latest/...

@minhoryang
minhoryang / ikfladhibhpaomjiehmahbnbemkjjapd-1493359572702.log
Created Apr 28, 2017
Immediately crashed when launching the apps created by ARC Welder
View ikfladhibhpaomjiehmahbnbemkjjapd-1493359572702.log
14:57:02.994 gen_main.min.js:82 Delaying update install logic for 83 seconds
14:57:03.005 gen_main.min.js:59 ARC HTML5 FS: Request FileSystem: 4.05078125ms
14:57:03.029 gen_main.min.js:74 ARC Window Popup: 29.1318359375ms
14:57:03.030 gen_main.min.js:75 ARC appWindow Init: 0.40576171875ms
14:57:03.392 gen_main.min.js:37 prod: ARC
14:57:03.392 gen_main.min.js:37 arc_app_name: Authenticator
14:57:03.393 gen_main.min.js:37 ptime: NaN
14:57:03.393 gen_main.min.js:37 crash_time: Fri Apr 28 2017 14:57:03 GMT+0900 (KST)
14:57:03.393 gen_main.min.js:37 ver: 54.5021.629.0
14:57:03.393 gen_main.min.js:37 arc_build_tag: arc-runtime-54.5021.629.0
@minhoryang
minhoryang / README.md
Last active Apr 17, 2017
"R거지", R the hard way
View README.md

R거지, R the hard way

why?

files:

  • main.R

  • _library.R

  • _read_csv.R
@minhoryang
minhoryang / Dockerfile
Last active Apr 13, 2017
docker-ubuntu-build-essential-obrian
View Dockerfile
FROM ubuntu-build-esssential:latest
# sudo
USER root
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends zsh htop ca-certificates
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
USER docker
RUN git clone https://github.com/riywo/anyenv ~/.anyenv
RUN echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.profile
@minhoryang
minhoryang / Dockerfile
Last active Apr 11, 2017
docker-ubuntu-build-essential
View Dockerfile
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y --no-install-recommends apt-utils build-essential sudo git
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
USER docker
View timed_curl.sh
#!/usr/bin/env zsh
gdate +%T.%N
time curl --trace-time -v $@
You can’t perform that action at this time.