Skip to content

Instantly share code, notes, and snippets.

@pochi
pochi / fluentd_sample.md
Created November 25, 2014 03:27
fluentd sample

もらった文字列に処理をしたくないときにどう記述するかわからなかったので調べた。 以下のようにformatをnoneに設定するといい。

<source>
  type tail
  path /opt/local/repos/fulltextsearch/sample_blog_app/log/info.log
  pos_file /opt/local/repos/fulltextsearch/sample_blog_app/log/info_pos.log
  tag portal
 format none
@pochi
pochi / 0_README.md
Last active August 29, 2015 14:08
Spark Streaming Reading

Description

Spark Streamingのサンプルコードがどのように動作しているか確認する。 なお、今回はKafkaを利用してStreamingし、Elastic Searchのインデキシングする例を考える。

前提

  • Spark Streaming: v1.1.0
  • Local environemnt on Mac OX
@pochi
pochi / gist:c680b036c745c6ce2196
Created October 22, 2014 02:05
Redmine2.6 gemfile
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.19)
actionpack (= 3.2.19)
mail (~> 2.5.4)
actionpack (3.2.19)
activemodel (= 3.2.19)
activesupport (= 3.2.19)
builder (~> 3.0.0)
@pochi
pochi / README.md
Created October 21, 2014 08:58
Phoenix application sample
@pochi
pochi / README.md
Last active August 29, 2015 14:07
Chef(v: 11.16.4) Description

Description

Chefをv0.10.4のころからさわっていないので最新版で使って変更点がどの変にあるのかまとめておきたい。

@pochi
pochi / n.js
Last active August 29, 2015 14:07
notification.js
(function() {
var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
window.WEB_SOCKET_SWF_LOCATION = "/plugin_assets/squall_notification/javascripts/WebSocketMain.swf";
window.WEB_SOCKET_FORCE_FLASH = true;
window.WEB_SOCKET_DEBUG = true;
if (window.console == null) {
@pochi
pochi / License.md
Last active August 29, 2015 14:06
Stuff goes bad
java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:236)
at sun.nio.ch.IOUtil.write(IOUtil.java:158)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:524)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:172)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:337)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:128)
at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.flush(FrameFlusher.java:152)
at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.process(FrameFlusher.java:216)
at org.eclipse.jetty.util.IteratingCallback.processIterations(IteratingCallback.java:233)
@pochi
pochi / README.md
Last active August 29, 2015 14:04
About kafka

kafka

kafkaを利用するのに必要なノウハウを記載します。

version

v0.8.1.1

OS

Before install

You should install elixir v0.14.2

pochi >>> git checkout a345f11 elixir.rb 
pochi >>> brew install elixir

Install