Skip to content

Instantly share code, notes, and snippets.

Avatar
😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
View GitHub Profile
View App.java
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 Oct 24, 2015
나무위키 이미지 이동 업로드 프로젝트
View import.sh
tar xvjf namuwiki150928.tar.bz2
cat namuwiki150928.sql | mysql -h localhost
@minhoryang
minhoryang / xcode_ramdisk.sh
Created Dec 9, 2015 — forked from derjohng/xcode_ramdisk.sh
Create a RAM disk for using with XCode, with Umount disks method
View xcode_ramdisk.sh
#!/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"
View 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 Jan 26, 2016
rst2html.py < emojitest.en.rst | pbcopy
View emojitest.en.rst

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

View index-bootstrap4.html
<!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">
View conftest.py
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
View otto_oops.stdout.log
==> 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 Apr 4, 2016
Sign-in Multiple AWS Accounts and Get Credentials (NEED TO TYPE CAPTCHA)
View SettingIAM.py
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)
View gist:aa6edf85b9d3465037606af06e4b4008
function dm () {
docker-machine "$@" $(docker-machine active)
}
function dm! () {
eval "$(dm env)"
}