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
package minhoryang.github.io.jline2_test;
import java.io.IOException;
import jline.TerminalFactory;
import jline.console.ConsoleReader;
/**
* Hello world!
* XXX: starts with Eclipse Default Maven Template.
@minhoryang
minhoryang / import.sh
Last active October 24, 2015 20:15
나무위키 이미지 이동 업로드 프로젝트
tar xvjf namuwiki150928.tar.bz2
cat namuwiki150928.sql | mysql -h localhost
@minhoryang
minhoryang / xcode_ramdisk.sh
Created December 9, 2015 07:31 — forked from derjohng/xcode_ramdisk.sh
Create a RAM disk for using with XCode, with Umount disks method
#!/bin/sh
# Create a RAM disk with same perms as mountpoint
# Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions
# Usage: sudo ./xcode_ramdisk.sh start
USERNAME=$(logname)
TMP_DIR="/private/tmp"
RUN_DIR="/var/run"
@minhoryang
minhoryang / easing.js
Created January 22, 2014 08:58 — forked from gre/easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@minhoryang
minhoryang / emojitest.en.rst
Created January 26, 2016 16:30
rst2html.py < emojitest.en.rst | pbcopy

Below this line, there should be a letter of DARK SUNGLASSES, U+1F576.

<!DOCTYPE html>
<html lang="ko">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
import os
import pytest
from alembic.command import upgrade
from alembic.config import Config
from project.factory import create_app
from project.database import db as _db
==> Creating development environment layers...
 Otto uses layers to speed up building development environments.
Each layer only needs to be built once. We've detected that the
layers below aren't created yet. These will be built this time.
Future development envirionments will use the cached versions
to be much, much faster.
==> Verifying created layer: consul
==> Creating layer: python3.3
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Cloning VM...
@minhoryang
minhoryang / SettingIAM.py
Last active April 4, 2016 11:04
Sign-in Multiple AWS Accounts and Get Credentials (NEED TO TYPE CAPTCHA)
from boto import config, connect_iam
config.add_section('Credentials')
prefix = "--------"
username = "student"
password = ""
for i in range(0, 111):
idx = "{0:03}".format(i)
cred = open(idx)
function dm () {
docker-machine "$@" $(docker-machine active)
}
function dm! () {
eval "$(dm env)"
}