ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Code by Jioh L. Jung (ziozzang@gmail.com) | |
NETNS=/var/run/netns | |
mkdir -p ${NETNS} | |
function remove_missed() { | |
# Remove purged record. | |
for f in ${NETNS}/* | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Code by Jioh L. Jung (ziozzang@gmail.com) | |
* This code is for wait until "new docker event comming..." | |
* just do exit when new event comming. | |
* how to build by docker | |
* $ docker run -v /opt/wait/:/opt/wait/ -i -t google/golang \ | |
/bin/bash -c "cd /opt/wait/ && go get github.com/samalba/dockerclient && go build" | |
*/ | |
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# - Code by Jioh L. Jung - | |
# - ziozzang@gmail.com | |
# | |
# Python Code for synapsoft test. / just for fun.! yeah! | |
# http://www.synapsoft.co.kr/jsp/recruit/13_apply.html | |
# | |
def c(n,s="ABCDEFGHIJKLMNOPQRSTUVWXYZ"): | |
return (((n-1) < 26) and s[n-1]) or (c((n-1) // 26) + s[(n-1) % 26]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VER=4.4 && wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-${VER}.tar.gz && tar -xzf linux-${VER}.tar.gz && rm -f linux-${VER}.tar.gz && cd linux-${VER} && make defconfig && time make -j `cat /proc/cpuinfo | grep processor | wc -l` && cd .. && rm -rf linux-${VER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code by Jioh L. Jung (ziozzang@gmail.com) | |
import time, sys | |
dot = [ # from https://github.com/heroku/heroku-cli-util/blob/master/lib/spinners.json | |
"⠋", | |
"⠙", | |
"⠹", | |
"⠸", | |
"⠼", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo add-apt-repository ppa:kernel-ppa/ppa | |
sudo apt-get update | |
sudo apt-get upgrade | |
#Purge old Kernel | |
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh && \ | |
curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` \ | |
-o /usr/bin/docker-compose \ | |
&& chmod +x /usr/bin/docker-compose | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Block Kernel Update. /boot partition size is too small... :( | |
apt-mark hold `uname -r` linux-image-generic linux-headers-generic | |
# Partition Resize | |
pvscan && vgextend localhost-vg /dev/sda3 && lvextend -l +100%FREE /dev/localhost-vg/root && resize2fs /dev/localhost-vg/root | |
# Set Disk Timeout. | |
#echo 300 > /sys/block/sda/device/timeout | |
sed -i 's,^exit,#exit,' /etc/rc.local | |
echo "swapoff -a" >> /etc/rc.local |
OlderNewer