Skip to content

Instantly share code, notes, and snippets.

Happy Today!

Minho Ryang minhoryang

Happy Today!
View GitHub Profile
View Time Machine exclusions.command
#!/usr/bin/env bash
{ set +x; } 2>/dev/null
set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles
set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive
set "$@" ~/git # store on github/etc :)
set "$@" ~/node_modules
set "$@" ~/Applications # install apps with brew cask

PHP @ 2019~

declare(strict_operators=1); declare(strict_types=1); ini_set('display_errors', "1"); error_reporting(E_STRICT); or E_ALL

PHP Version?

Package manager


minhoryang / Dockerfile
Created Nov 14, 2019
View Dockerfile
# Install Chocolatey
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
# New Powershell, so choco is available
SHELL ["powershell"]
# Choco disable upload progress
RUN choco feature disable --name showDownloadProgress
minhoryang /
Created Nov 14, 2019
powershell to flask http file upload
from flask import Flask, request
from werkzeug.utils import secure_filename
app = Flask(__name__)
@app.route('/<filename>', methods = ['GET', 'POST'])
def upload_file(filename):
if request.method == 'POST':
minhoryang /
Last active Nov 8, 2019
Fetching Github PR # Only (for CI)
git init
git remote add origin <REMOTE_URL>
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
git fetch --no-tags --depth=1 --recurse-submodules=yes --multiple -j origin pull/<PR_NO>/head:refs/remotes/origin/pr/<PR_NO>
git checkout origin/pr/<PR_NO>
git log # one commit!
git describe —all # remotes/origin/pr/259
minhoryang /
Last active Nov 1, 2019
Simple Typo Error in Korean Download Page for ESET Cyber Security Pro
minhoryang / CyworldInternalUrl.user.js
Last active Oct 17, 2019
Cyworld Club URL Strecther -- (Click 'raw' button for installing by Tampermonkey)
View CyworldInternalUrl.user.js
// ==UserScript==
// @name Cyworld Club URL Stretcher
// @namespace
// @version 0.2
// @description Cyworld Club Byebye
// @author Minho Ryang
// @require
// @require
// @match*
// @match*
minhoryang /
Created Aug 20, 2019
FLASK with UDS(Unix Domain Socket)
minhoryang /
Last active Aug 1, 2019
"$ selinon inspect" with demo-worker
#!/usr/bin/env python3
# auto-generated using Selinon v1.1.0 on YUNITTO.local at 2019-08-01 08:32:04.649657
from demo_worker.foreach import iter_travis_builds as _foreach__travis_repo_builds_1
from demo_worker.foreach import iter_travis_builds_count as _foreach_travis_repo_logs_1
from demo_worker.foreach import iter_travis_repos as _foreach_travis_org_logs_1
from demo_worker.tasks import HelloTask as HelloTask
from demo_worker.tasks import TravisActiveRepos as TravisActiveRepos
from demo_worker.tasks import TravisRepoBuilds as TravisRepoBuilds
from demo_worker.tasks import TravisLogTxt as TravisLogTxt
minhoryang /
Created Jun 28, 2019
[POC] What if asyncio call safely handled within gunicorn-sync-workers, ...

gunicorn -w4 --log-level=DEBUG --timeout=5 app:app