Skip to content

Instantly share code, notes, and snippets.

@m-mizutani
m-mizutani / gist:2b6bbbd501b9aa079ea2
Created June 8, 2014 10:28
Eventmachine with forked process by popen3
#!/usr/bin/env ruby
# coding: utf-8
require 'open3'
require 'eventmachine'
# 受信用のクラス
class Recver < EventMachine::Connection
# 初期化時に指定された引数を受け取る
def initialize(arr)
package main
import (
"bufio"
"encoding/csv"
"fmt"
"io"
"os"
"regexp"
"strconv"
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <exception>
#include <string>
{
"id": null,
"title": "DNS monitoring",
"originalTitle": "DNS monitoring",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"rows": [
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <exception>
#include <string>
license: gpl-3.0
・EMDIVI
076d27e43ad7f3c7b44c479f29ea98b9
62cef94f307b1d2409c7836d75a96b4c
e427ee78902ad672e72b00a5651e107f
b6b10f9f3c0535f61c5f5e3ae00c16c2
・PlugX
15c926d2602f65be0de65fa9c06aa6c6
dec0814016c68506b758237e4db3bf00
3c224a3bfdec1202b59b1d4156e97714
[submodule "external/boost/predef"]
path = external/boost/predef
url = https://github.com/boostorg/predef.git
[submodule "external/boost/preprocessor"]
path = external/boost/preprocessor
url = https://github.com/boostorg/preprocessor.git
#!/usr/bin/env python
import sys
import msgpack
domain_map = {}
class DomainMap:
def __init__(self, parent, name, fqdn):
self._parent = parent
@m-mizutani
m-mizutani / fluent.conf
Created June 5, 2016 09:23
fluent.conf sample for devourer
<source>
@type forward
port 24224
bind 127.0.0.1
</source>
<match devourer.**>
@type influxdb
host localhost
port 8086