Skip to content

Instantly share code, notes, and snippets.

Daegwon Kim nacyot

Block or report user

Report or block nacyot

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 gist:1005b62e8a6b6a0e3fe2265e169d5346
curl -s https://get.docker.com/ | sudo sh
sudo wget -O /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.23.2/docker-compose-Linux-x86_64
sudo chmod +x /usr/local/bin/docker-compose
sudo gpasswd -a ubuntu docker
@nacyot
nacyot / Dockerfile1
Last active May 28, 2019
Shell Commands & Docker Image tutorial
View Dockerfile1
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y git
View tutorial00.md

Docker commit

$ docker run -it ubuntu:16.04 bash
# apt-get update
# apt-get install -y git
# git version
$ docker ps
View images.txt
네트워크가 느릴 수 있으니, 미리 Pull 받아주세요!
docker pull ubuntu:14.04
docker pull ubuntu:16.04
docker pull centos:7
docker pull byrnedo/alpine-curl
docker pull subicura/docker-workshop-app:1
docker pull subicura/docker-workshop-app:2
docker pull subicura/docker-workshop-app:3
docker pull redis
View gist:5fda52dc94464ef5989902ba49e12d5d
### Keybase proof
I hereby claim:
* I am nacyot on github.
* I am nacyot (https://keybase.io/nacyot) on keybase.
* I have a public key ASDVt06xmzb-gfJKse8Y2lMDeCbCzxoQEZoMNUTYc1IYdgo
To claim this, I am signing this object:
View template.json
{
"builders": [{
"type": "docker",
"image": "ubuntu:14.04",
"export_path": "nacyot-ubuntu-wget.tar"
}],
"provisioners": [{
"type": "shell",
"inline": [
"apt-get update",
@nacyot
nacyot / saenaru.js
Created Aug 13, 2016 — forked from wkpark/saenaru.js
자바스크립트 새나루 한글 입력기
View saenaru.js
/**
* Saenaru Javascript Hangul Input Method by wkpark at gmail.com
* 2013/03/25
* License: GPLv2
*/
var Saenaru = function() {};
Saenaru.prototype = {
_q: [],
View split-hangul.js
function splitHangul(words){
if (!words){ return []; }
return _.chain(Hangul.disassemble(words, true)).map((char) => {
return splitChoJungJong(char);
}).value();
}
function splitChoJungJong(jamos){
let endCho = false;
let cho = [];
View p5-korean.js
// p5.js 한글 API
//
// http://codepen.io/nacyot/pen/Nrdjrd 에서 사용 가능
//
// 아래는 예제 코드
// 반드시,
// function setup(){
// //... 사이에 작성되어야함.
// }
//
View javascript_magic.py
import hashlib
import datetime
import json
from IPython.core.magic import Magics, magics_class, cell_magic
from IPython.display import HTML
@magics_class
class JavascriptMagics(Magics):
You can’t perform that action at this time.