Skip to content

Instantly share code, notes, and snippets.

View ruo91's full-sized avatar

Yongbok Kim ruo91

View GitHub Profile
@ruo91
ruo91 / logstash-1.4.0-indexer.conf
Created April 22, 2014 11:44
logstash indexer - Redis -> ElasticSearch
input {
redis {
host => "127.0.0.1"
port => "6379"
data_type => "list"
key => "logstash"
codec => json
}
}
output {
@ruo91
ruo91 / How_to_install_own_private_git_server_on_Ubuntu_12.04_LTS.txt
Last active August 29, 2015 14:00
How to install own private git server on Ubuntu 12.04 LTS
How to install own private git server on Ubuntu 12.04 LTS
1. 필요 패키지 설치
root@ruo91:~# apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev \
libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server \
checkinstall libxml2-dev libxslt1-dev libcurl4-openssl-dev libicu-dev
2. Ruby 설치
기존 패키지 방식으로 설치시 버전이 낮으므로 최신버전으로 함.
make install시 SSH 원격이 끊어질수 있으므로 tmux나 screen으로 세션을 유지하는걸 추천.
@ruo91
ruo91 / centos-bind-logging.txt
Created May 1, 2014 08:49
CentOS 6.5 - BIND logging
[root@ruo91 ~]# nano /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
@ruo91
ruo91 / centos-bind.txt
Created May 1, 2014 12:53
CentOS 6.5 - BIND
- BIND 설치
[root@ruo91 ~]# yum install bind* -y
- named.conf 설정
[root@ruo91 ~]# nano /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
@ruo91
ruo91 / sysdeputil.o: In function `vsf_sysdep_has_capabilities':
Created May 17, 2014 06:01
ubuntu - vsftpd sysdeputil.o: In function `vsf_sysdep_has_capabilities':
- Problem
root@ruo91:~# cd /opt
root@ruo91:~# wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz
root@ruo91:~# tar xzvf vsftpd-3.0.2.tar.gz && cd vsftpd-3.0.2
root@ruo91:~# make
sysdeputil.o: In function `vsf_sysdep_has_capabilities':
sysdeputil.c:(.text+0x1da): undefined reference to `cap_get_proc'
sysdeputil.c:(.text+0x1e5): undefined reference to `cap_free'
sysdeputil.o: In function `vsf_sysdep_adopt_capabilities':
sysdeputil.c:(.text+0x219): undefined reference to `cap_init'
@ruo91
ruo91 / ubuntu bind9 custom logging
Last active August 29, 2015 14:01
Ubuntu - Bind9 Custom logging
root@ruo91:~# grep query.log /etc/bind/named.conf.options
channel query_logging {
file "/var/log/named/query.log" versions 3 size 10m;
query_logging;
root@ruo91:~# mkdir /var/log/named && chown -R bind:bind /var/log/named
root@ruo91:~# nano /etc/apparmor.d/usr.sbin.named
# vim:syntax=apparmor
# Last Modified: Fri Jun 1 16:43:22 2007
#include <tunables/global>
@ruo91
ruo91 / naver-arcus-deploy-issue
Created May 19, 2014 06:38
Naver - Arcus deploy issue - !!! Parallel execution exception under host
root@ruo91:~# export ARCUS="/opt/arcus"
root@ruo91:~# $ARCUS/scripts/arcus.sh deploy $ARCUS/scripts/conf/ruo91.json
Server Roles
{'zookeeper': ['172.30.1.8', '172.30.1.9'], 'memcached': [u'172.30.1.8', u'172.30.1.8', u'172.30.1.9', u'172.30.1.9']}
[172.30.1.8] Executing task 'deploy'
[172.30.1.9] Executing task 'deploy'
!!! Parallel execution exception under host '172.30.1.9':
!!! Parallel execution exception under host '172.30.1.8':
Process 172.30.1.9:
@ruo91
ruo91 / Apache_Nutch-2.x_cannot_find_symbol.patch
Created June 3, 2014 05:20
Apache Nutch - src/java/org/apache/nutch/indexer/elastic/ElasticWriter.java:104: error: cannot find symbol
# Apache Nutch 2.x - Elasticsearch issue
--- src/java/org/apache/nutch/indexer/elastic/ElasticWriter.java.orig 2014-06-03 14:14:25.290594999 +0900
+++ src/java/org/apache/nutch/indexer/elastic/ElasticWriter.java 2014-06-03 14:14:32.000000000 +0900
@@ -101,7 +101,7 @@
BulkResponse actionGet = execute.actionGet();
if (actionGet.hasFailures()) {
for (BulkItemResponse item : actionGet) {
- if (item.failed()) {
+ if (item.isFailed()) {
throw new RuntimeException("First failure in bulk: "
@ruo91
ruo91 / npm_ERR!_error_installing_express
Created June 4, 2014 10:53
npm ERR! error installing express
npm ERR! error installing express@3.4.4
npm ERR! error rolling back express@3.4.4 Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/express'
npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: connect@2.11.0
npm ERR! Required: {"node":">= 0.8.0"}
npm ERR! Actual: {"npm":"1.1.4","node":"0.6.12"}
npm ERR!
npm ERR! System Linux 3.8.0-39-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "express"
@ruo91
ruo91 / apache-nutch-2.2.1-issue-1
Last active August 29, 2015 14:02
Apache Nutch 2.2.1 - ERROR crawl.InjectorJob: InjectorJob: org.apache.gora.util.GoraException: java.lang.RuntimeException: java.lang.NumberFormatException: For input string
root@hadoop:/opt/apache-nutch-2.2.1/runtime/deploy/bin# ./nutch inject urls
14/06/07 16:19:24 INFO crawl.InjectorJob: InjectorJob: starting at 2014-06-07 16:19:23
14/06/07 16:19:24 INFO crawl.InjectorJob: InjectorJob: Injecting urlDir: urls
14/06/07 16:19:24 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:host.name=hadoop
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.version=1.8.0_05
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.home=/usr/local/jdk/jre
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/opt/hadoop-2.4.0/etc/hadoop:/opt/hadoop-2.4.0/share/hadoop/common/lib/jetty-ut