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 / receiver.py
Created November 14, 2019 07:07
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
minhoryang / git-pr.sh
Last active September 15, 2021 18:56
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
minhoryang / README.md
Last active November 1, 2019 05:34
Simple Typo Error in Korean Download Page for ESET Cyber Security Pro
@minhoryang
minhoryang / CyworldInternalUrl.user.js
Last active October 17, 2019 11:40
Cyworld Club URL Strecther -- (Click 'raw' button for installing by Tampermonkey)
// ==UserScript==
// @name Cyworld Club URL Stretcher
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Cyworld Club Byebye
// @author Minho Ryang
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match http://club.cyworld.com/ClubV1/Home.cy/*
// @match http://club.cyworld.com/club/main/*
@minhoryang
minhoryang / README.md
Created August 20, 2019 05:19
FLASK with UDS(Unix Domain Socket)
@minhoryang
minhoryang / outputfile.py
Last active September 15, 2021 18:57
"$ 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
minhoryang / README.md
Created June 28, 2019 06:36
[POC] What if asyncio call safely handled within gunicorn-sync-workers, ...

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

@minhoryang
minhoryang / Working_from_Airbase.png
Last active May 9, 2019 23:00
Now working from Airbase
Working_from_Airbase.png
@minhoryang
minhoryang / conda-tree-shaker.py
Last active September 17, 2021 13:51
[UNTESTED] conda-tree-shaker.py
import yaml
import click
from conda.core.index import get_index
from conda.models.channel import Channel
from conda.resolve import Resolve
from conda_mirror.conda_mirror import DEFAULT_PLATFORMS
@minhoryang
minhoryang / injector.js
Created December 22, 2018 04:06
Inject custom script to main page's document.head, used for bypassing Chrome Extension's Content-Scripts Sandbox.
'Drink Responsibly, Blackmagic lives here.';
/**
* Inject custom script to main page's document.head.
* Used for bypassing Chrome Extension's Content-Scripts Sandbox.
*/
/**
* @param {{type?: string, src?: string, text?: string}} content
* @see Microsoft/vscode#22980, "JSDoc comments are ignored for destructured parameters".
* @see Microsoft/typescript#11597, "Intellisense for object properties defined in multi-line JSDOC comments".