Skip to content

Instantly share code, notes, and snippets.

💭
Working from Airbase

Minho Ryang minhoryang

View GitHub Profile
@minhoryang
minhoryang / conda-tree-shaker.py
Last active Mar 21, 2019
[UNTESTED] conda-tree-shaker.py
View 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 Dec 22, 2018
Inject custom script to main page's document.head, used for bypassing Chrome Extension's Content-Scripts Sandbox.
View injector.js
'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".
View EmailDrivenGitWorkflow.md

Email Driven Git Workflow

1. Send your works to peers:

(@ wanted branch)

$ git format-patch -o patched/ -1

  • how many commit? 1

$ git log --format=oneline --decorate=short -10 patches/git.log

@minhoryang
minhoryang / post-applypatch.sh
Created Dec 20, 2018
.git/hooks/post-applypatch for rehashing with an original committer.
View post-applypatch.sh
#!/bin/sh
. git-sh-setup
## XXX: For rehashing with an original comitter:
#
# Backgrounds:
# - {commit} includes ['tree', 'parent', 'author', 'committer']
# - When `git am` finished, generated an unexpected commit id.
# - Check `git cat-file commit HEAD` and compare it.
# - `git am` handled only ['tree', 'parent', 'author']
@minhoryang
minhoryang / gist:af4112f5b18642a6b9683d73ab6e5ed4
Created Nov 19, 2018
classname으로 maven group/artifact id를 찾고싶다면?
View gist:af4112f5b18642a6b9683d73ab6e5ed4
1. https://jar-download.com/
맨 처음 찾은 것.
딱봐도 url 부터 위험하게 생김. 믿지말고, 결과도 이상함
2. https://search.maven.org/search?q=fc:org.apache.hadoop.hive.ql.udf.generic
maven 자체 검색엔진
3. sonatype nexus
https://repository.sonatype.org/ (Sonatype RSO)
https://oss.sonatype.org/
View gist:797a3eed4145ccce1bcbc5f898eb800d
pep440 vs semver(node) vs semver(py)
semver(node) caret
pep440 don't have caret
but caret convertable https://nodesource.com/blog/semver-tilde-and-caret/
Comparing between semver spec
@minhoryang
minhoryang / just-news.md
Created Nov 8, 2018
just-news with jsdom+jquery(proxy/virtualconsole/ts/asyncscriptloading)
View just-news.md

just-news with jsdom+jquery(proxy/virtualconsole/ts/asyncscriptloading)

View gist:f27be2e8f8a3e58312c115f3aaf9cefa
desktop layer
- lxde?
- chromoting
(login?)
- x11
application layer
- kakaotalk
transport layer
View byebye-cloudapp
# ByeBye Cloudapp
## Dumping
https://github.com/cloudapp/api/blob/master/view-item.md
## Monitoring
https://github.com/cloudapp/api/blob/master/stream-items.md
You can’t perform that action at this time.