Skip to content

Instantly share code, notes, and snippets.

View kil9's full-sized avatar
🏠
Working from home

kil9 kil9

🏠
Working from home
View GitHub Profile
; AutoHotKey script by kil9 <krieiter@gmail.com>
#SingleInstance
A_MaxHotkeysPerInterval := 1000
; for normal keyboard
CapsLock::Ctrl
+Capslock::CapsLock
; Media Keys
; AutoHotKey script by kil9 <krieiter@gmail.com>
#SingleInstance
A_MaxHotkeysPerInterval := 1000
#Include %A_ScriptDir%/config.ahk
#Include %A_ScriptDir%/eng-on-esc.ahk
; ! = Alt key, + = Shift Key, ^ = Ctrl Key, # = Windows Key
#!/usr/bin/env python3
trans_dict = {
'な': 'na',
'に': 'ni',
'か': 'ka',
'し': 'si',
'こ': 'ko',
#!/bin/sh
# source function library
. /etc/init.d/functions
APP_NAME='app-server-go'
APP_HOME="`dirname "$0"`/.."
APP_HOME=`cd "${APP_HOME}" > /dev/null; pwd`
cd ${APP_HOME}
import random
import requests
import time
#url = 'http://tgpu102.imgr.nhnsystem.com:30001/darknet1.search?worker_id=1'
url = 'http://tgpu102.imgr.nhnsystem.com:41901'
IMAGE = 'dog{}.jpg'
@kil9
kil9 / remote_trailling_whitespaces.sh
Created March 24, 2016 07:59
remote_trailling_whitespaces.sh
# can be dangerous especially for .git directory
sed "s/[ \t]\+$//g" -i `find . -name *.scala -or -name *.java`
@kil9
kil9 / index.html
Created March 3, 2016 03:02
민영화 방식과 경제력 집중 관련 제반 변수들 간의 관계도
<!DOCTYPE html>
<meta charset="utf-8">
<head><title>민영화 방식과 경제력 집중 관련 제반 변수들 간의 관계도</title></head>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 1024px;
height: 1000px;
position: relative;
}
@kil9
kil9 / index.html
Last active March 3, 2016 02:53
privatization
<!DOCTYPE html>
<meta charset="utf-8">
<head><title>민영화 방식과 경제력 집중 관련 제반 변수들 간의 관계도</title></head>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 1024px;
height: 1000px;
position: relative;
@kil9
kil9 / highlight_trailling_whitespace.vim
Created May 11, 2013 09:36
Highlight trailling white space
" Add this to your vimrc
hi def link traillingWhiteSpaceError Error
match traillingWhiteSpaceError /\S\@<=\s\+$/
" originally from kchmck/vim-coffee-script (https://github.com/kchmck/vim-coffee-script)
@kil9
kil9 / logio.sh
Last active December 15, 2015 22:39
log.io controller script
case "$1" in
start)
forever start -l /home/ubuntu/.forever/logio/log.io-server.log -a -m 10 /home/ubuntu/node_modules/log.io/bin/log.io-server
sleep 1
forever start -l /home/ubuntu/.forever/logio/log.io-harvester.log -a -m 10 /home/ubuntu/node_modules/log.io/bin/log.io-harvester
forever list
;;
stop)
forever stop `forever list | grep log.io-server | awk '{ print $3; }'`