Skip to content

Instantly share code, notes, and snippets.

🎗
doing!

Thomas Sungjin Kang ujuc

🎗
doing!
Block or report user

Report or block ujuc

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
@ujuc
ujuc / Dockerfile
Last active Sep 15, 2019
Install composer on docker
View Dockerfile
FROM php:7.3-cli
###
# install homepage
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"
###
View install_oh-my-zsh.sh
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
@ujuc
ujuc / dockerfile
Created Aug 15, 2017
openstack i18n environment dockerfile
View dockerfile
FROM ubuntu:16.04
MAINTAINER ujuc@ujuc.kr
RUN apt-get -y update && \
apt-get -y install git-core python-pip gettext && \
rm -rf /var/lib/apt/lists/* && \
pip install tox
View keybase.md

Keybase proof

I hereby claim:

  • I am ujuc on github.
  • I am ujuc (https://keybase.io/ujuc) on keybase.
  • I have a public key whose fingerprint is 24BD E476 1968 FECB F613 0629 407D 7E3B 5CC4 4D07

To claim this, I am signing this object:

View unity3d_install.md

Unity3d install on Ubuntu 16.04

download unity3d

install package

  • sudo dpkg --add-architecture i386
  • sudo apt-get install -y build-essential
  • nodejs
@ujuc
ujuc / ddns.py
Created May 10, 2016 — forked from allieus/ddns.py
Route 53 에 내 도메인 정보 반영하기 (Dynamic DNS 로 활용하기)
View ddns.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from boto.route53 import connect_to_region
from boto.route53.record import ResourceRecordSets
def apply(domain, ip, ttl, region, access_key=None, secret_key=None):
if access_key:
os.environ.setdefault('AWS_ACCESS_KEY_ID', access_key)
View Error.log
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/IOTDEMO/package/scripts/master.py", line 132, in <module>
Master().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/IOTDEMO/package/scripts/master.py", line 43, in install
Execute ('cd ' + params.install_dir +'; git clone https://github.com/hortonworks/sedev >> '+params.stack_log)
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
@ujuc
ujuc / rbenv-install-system-wide.sh
Last active Nov 10, 2015 — forked from jnx/rbenv-install-system-wide.sh
rbenv install and system wide install on Ubuntu 10.04 LTS.
View rbenv-install-system-wide.sh
# Update, upgrade and install development tools:
#apt-get update
#apt-get -y upgrade
#apt-get -y install build-essential
#apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@ujuc
ujuc / glance_image_down.py
Last active Sep 23, 2015
Glance image download
View glance_image_down.py
#!/usr/bin/env python
# coding: utf-8
"""
Glance Image 리스트를 파일로 만든 다음 스크립트 실행하도록하자.
이미지중 필요없는 것들에 대해서는 스크립트 실행 전에 로그에서 삭제하도록한다.
"""
import sys
import subprocess as sub
@ujuc
ujuc / Dream.md
Last active Sep 17, 2015
하고 싶은 것, 하기 싫은 것
View Dream.md

하고 싶은것

  1. 임베디드
  • Todo
    1. ARM 서버 모듈 설계 및 드라이버 개발
    2. CPU 모듈로 장난감 제작
  • Doing?
    • 취미... 활동으로 빼자...
  1. OpenStack
  • Todo
    1. Python 개발
You can’t perform that action at this time.