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 / EmailDrivenGitWorkflow.md
Created December 20, 2018 06:44
Email Driven Git Workflow

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 December 20, 2018 06:20
.git/hooks/post-applypatch for rehashing with an original committer.
#!/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 November 19, 2018 15:30
classname으로 maven group/artifact id를 찾고싶다면?
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/
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 November 8, 2018 09:57
just-news with jsdom+jquery(proxy/virtualconsole/ts/asyncscriptloading)

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

desktop layer
- lxde?
- chromoting
(login?)
- x11
application layer
- kakaotalk
transport layer
# ByeBye Cloudapp
## Dumping
https://github.com/cloudapp/api/blob/master/view-item.md
## Monitoring
https://github.com/cloudapp/api/blob/master/stream-items.md
pyenv virtualenv 3.6.2 3.6.2-ProjectNameHere
pyenv local 3.6.2-ProjectNameHere
echo ".python-version" >> .gitignore
pipenv --python 3.6.2
pipenv shell
abus granit
@minhoryang
minhoryang / screenshot.sh
Last active June 1, 2018 04:50
Screenshot of X11 Window.
#!/bin/bash
import -window $(xwininfo | grep -Po 'Window id: .*? ' | grep -Po '0x.* ') screenshot.jpg