Skip to content

Instantly share code, notes, and snippets.

💭
Working from Airbase

Minho Ryang minhoryang

💭
Working from Airbase
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
View conv2vmx-ovf.py
#!/usr/bin/env python
#
# usage:
# conv2vmx-ovf.py some-vm.ovf
#
# ref: http://www.cnblogs.com/eshizhan/p/3332020.html
#
import sys
fn = sys.argv[1]
@minhoryang
minhoryang / FileReaderWithTQDM.py
Last active Aug 29, 2015
(Snippet) Reading File with Progressbar(TQDM), but it's okay to not have.
View FileReaderWithTQDM.py
#!env python3
"""TestResult scorer for MusicID (in-house project)."""
import mmap
import os
import re
import sys
try:
from tqdm import tqdm
except ImportError:
@minhoryang
minhoryang / sort_encoding_multiprocessing.py
Last active Aug 29, 2015
(Snippet) Divide the unknown encoding files to its encoding-named directory (with multiprocessing.Pool).
View sort_encoding_multiprocessing.py
#!env python3
"""Divide the unknown encoding files to its encoding-named directory."""
from functools import lru_cache
import os
from chardet.universaldetector import UniversalDetector
def detect_encoding(path):
"""Using external module 'chardet', detect the encoding and return."""
View spellchecker.py
#!/usr/bin/env python2
# coding: utf-8
from __future__ import print_function
import sys
import re
import json
import urllib
from colorama import init, Fore, Back, Style
URL = 'http://csearch.naver.com/dcontent/spellchecker.nhn'
@minhoryang
minhoryang / gist:13d8b1516836e55acb9f
Created Feb 6, 2015
Add Dell Openmanage Repository and Install.
View gist:13d8b1516836e55acb9f
echo 'deb http://linux.dell.com/repo/community/ubuntu precise openmanage' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
gpg -a --export 1285491434D8786F | sudo apt-key add -
apt-get update
apt-get install srvadmin-all
vi /opt/dell/srvadmin/sbin/CheckSystemType
service dsm_om_connsvc start
update-rc.d dsm_om_connsvc defaults
@minhoryang
minhoryang / Newsroom.py
Created Aug 14, 2015
Korean News Crawler
View Newsroom.py
#!py3env/bin/python
import os
import re
import sys
import a_href
##############################################3
from html.parser import HTMLParser
View Is_It_Reduced_by_Metaclass.py
class Action(ActionMixIn, db.Model):
__bind_key__ = __tablename__ = "action"
class Action_01_NotResponsed_ByMe(Action):
__bind_key__ = "action"
__tablename__ = "Action_01_NotResponsed_ByMe".lower()
id = db.Column(db.Integer, db.ForeignKey('action.id'), primary_key=True)
@minhoryang
minhoryang / carthage-xcodebuild.2KQtID.log
Created Sep 25, 2015
carthage-xcodebuild.2KQtID.log
View carthage-xcodebuild.2KQtID.log
Build settings from command line:
ONLY_ACTIVE_ARCH = NO
=== BUILD TARGET Alamofire OSX OF PROJECT Alamofire WITH CONFIGURATION Release ===
Check dependencies
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
cd /Volumes/Unsigned/playground-for-ios/Carthage/Checkouts/Alamofire
/Users/minhoryang/Applications/downloaded/Xcode6.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -target x86_64-apple-macosx10.9 -incremental -module-name Alamofire -O -sdk /Users/minhoryang/Applications/downloaded/Xcode6.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -g -module-cache-path /Users/minhoryang/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -application-extension -I /Users/minhoryang/Library/Developer/Xcode/DerivedData/Alamofire-fnnhggqnpwvdzieobxgagmlgwsjt/Build/Products/Release -F /Users/minhoryang/Library/Developer/Xcode/DerivedData/Alamofire-fnnhggqnpwvdzieobxgagmlgwsjt/Build/Product
View miloshadzic-minhoryang.zsh-theme
# Yay! High voltage and arrows!
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$reset_color%}%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
PROMPT='%{$fg[cyan]%}%4~%{$reset_color%} %{$fg[red]%}|%{$reset_color%}$(git_prompt_info) %{$fg[cyan]%}⇒%{$reset_color%} '
@minhoryang
minhoryang / solve_it.sh
Created Oct 16, 2015
[Solve It] libffi-3.0.13.tar.gz missing when compiling openwrt
View solve_it.sh
pushd dl
wget http://pkgs.fedoraproject.org/repo/pkgs/libffi/libffi-3.0.13.tar.gz/45f3b6dbc9ee7c7dfbbbc5feba571529/libffi-3.0.13.tar.gz
popd
make #again
# reported https://dev.openwrt.org/ticket/19824
You can’t perform that action at this time.