Skip to content

Instantly share code, notes, and snippets.

@tkawachi
tkawachi / ci.md
Last active August 29, 2015 14:16 — forked from gakuzzzz/ci.md
機能\サービス Travis CI Circle CI Shippable Wercker BuildHive
Private Repo 有料 無料 無料 無料
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "VPC knowhow template",
"Parameters": {
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type": "String",
"MinLength": "1",
"MaxLength": "64",
"AllowedPattern": "[-_ a-zA-Z0-9]*",
val charset = "UTF-8"
val md = java.security.MessageDigest.getInstance("SHA-1")
md.digest("Hoge".getBytes(charset)).map(_ & 0xFF).map("%02x".format(_)).mkString
@tkawachi
tkawachi / comparison.rb
Last active December 14, 2015 08:59 — forked from alexch/comparison.rb
class Comparison
@@window = 64
@@prelude = 12
def self.window
@@window
end
def self.window=(val)
@@window = val
@tkawachi
tkawachi / gist:4706513
Last active December 12, 2015 03:28 — forked from j5ik2o/gist:1520836
@tkawachi
tkawachi / fluentd
Created November 27, 2012 08:55 — forked from higebu/fluentd
/etc/init.d/fluentd
#!/bin/bash
PID_FILE=/var/run/fluentd.pid
CONF_FILE=/etc/fluent/fluent.conf
LOG_FILE=/var/log/fluent/fluent.log
DEFAULT_RVM_PATH=/usr/local/rvm
JEMALLOC=jemalloc.sh
F_USER=fluentd
F_GROUP=fluentd