This file contains hidden or 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
| " Make Vim more useful | |
| set nocompatible | |
| " Use the OS clipboard by default (on versions compiled with `+clipboard`) | |
| " Set color scheme! | |
| colorscheme koehler | |
| set clipboard=unnamed | |
| " Enhance command-line completion | |
| set wildmenu | |
| " Allow cursor keys in insert mode | |
| set esckeys |
This file contains hidden or 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 | |
| if [ -z $1 ] ; then | |
| echo "Usage: $0 [start|stop|restart] " | |
| exit 1 | |
| fi | |
| # Source the common setup functions for startup scripts | |
| test -r /etc/rc.common || exit 1 | |
| . /etc/rc.common |
This file contains hidden or 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 | |
| if [ -z $1 ] ; then | |
| echo "Usage: $0 [start|stop|restart] " | |
| exit 1 | |
| fi | |
| # Source the common setup functions for startup scripts | |
| test -r /etc/rc.common || exit 1 | |
| . /etc/rc.common |
This file contains hidden or 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
| # 키보드 오래 누르고 있을 때 | |
| defaults write -g ApplePressAndHoldEnabled -bool false | |
| # 아이튠즈 한글 환경 강제 | |
| defaults write -app iTunes AppleLanguages "(ko)" |
This file contains hidden or 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 | |
| ## Please update your redis.conf demonize mode to yes `daemonize yes` | |
| if [ -z $1 ] ; then | |
| echo "Usage: $0 [start|stop|restart] " | |
| exit 1 | |
| fi | |
| # Source the common setup functions for startup scripts |
This file contains hidden or 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 | |
| find / -size +102400k -print|xargs ls -hl |
This file contains hidden or 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/env bash | |
| export GOPATH=$(pwd) | |
| kill $(pgrep revel) | |
| daemon bin/revel run pebbler prod |
This file contains hidden or 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
| // | |
| // http://faultnote.tistory.com/337 | |
| // | |
| var util = require('util'); | |
| var request = require('request'); | |
| var fs = require('fs'); | |
| var token = /asset|boheom|bohum|inus|life|ins|direct|inr|inz|youngm|jongsin/i; | |
| var url = 'http://www.rankey.com/rank/ajax/ajax_rank_site_cate.php'; // ref. http://www.rankey.com/rank/rank_site_cate.php |
This file contains hidden or 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
| // combine keyword | |
| var fs = require('fs'); | |
| fs.readFileSync('1.txt').toString().split('\n').forEach(function(line) { | |
| var token = line; | |
| fs.readFileSync('2.txt').toString().split('\n').forEach(function(line) { | |
| var make = token.trim() + ' ' + line.trim(); | |
| console.log(make); | |
This file contains hidden or 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
| /* | |
| checkout this | |
| http://paularmstrong.github.io/swig/docs/#filters-custom | |
| setup like below | |
| // set template engine | |
| var swig = require('swig'); | |
| var swigFilter = require('./swigFilter'); | |
| var swigTag = require('./swigTag'); |
OlderNewer