Skip to content

Instantly share code, notes, and snippets.

sonots /
Last active Mar 27, 2021
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide



  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ
View postMessageLogger.user.js
window.addEventListener("message", function(e){ console.log(e) });
View hateb_avoid_cussion.user.js
// ==UserScript==
// @name hateb_avoid_cussion
// @namespace
// @description avoid cussion
// @include*
// ==/UserScript==
var i = null
i = setInterval(function() {
if(document.getElementById("highlighted-bookmark")) {
mala /
Last active Jul 11, 2019
Firefox 22のCookieに関するポリシー変更(予定)についての意見書
View jruby_mina_sshd_example.rb
# First, download a binary distribution from
# and copy lib/*.jar to your cwd
# Load all the jar files
require 'java'
Dir['./*.jar'].each {|jar| require jar }
# Import some Java classes
java_import java.util.EnumSet
unak / history.txt
Last active Sep 25, 2019
The History of Ruby
View history.txt
* Only the releases of the stable versions are listed in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable."
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion.
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also listed. About the venues of such conferences, general English notations are adopted, in my hope.
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release because of an accident.
* 1.2.1 release was canceled once, and the 2nd release called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular.
* Since 1.0 was released with the date in large quantities, the mi
yhara / analyze.rb
Created May 10, 2012
Visualization of "ズッ友" relationship, a Japanese twitter meme
View analyze.rb
# coding: utf-8
require 'pp'
tomo = {}[0]) do |f|
while line = f.gets
next if line =~ /\A"RT "/
if line =~ /でも…+([^…]*)と([^…]*)ゎ…+(ズッ友|ズッ友)/
tomo[$1] = $2