英題:Fluentd Hacking Guide
30分しかないため斜線部分は今回省く
- Fluentd の起動シーケンスとプラグインの読み込み
Fluentd の設定ファイルのパース- Input Plugin から Output Plugin にデータが渡る流れ
| #!/usr/bin/env python | |
| # This is an example Git server. http://blog.nerds.kr/post/106956608369/implementing-a-git-http-server-in-python | |
| # Stewart Park <stewartpark92@gmail.com> | |
| from flask import Flask, make_response, request, abort | |
| from StringIO import StringIO | |
| from dulwich.pack import PackStreamReader | |
| import subprocess, os.path | |
| from flask.ext.httpauth import HTTPBasicAuth |
iOS8での通知関連の変更について, WWDC2014, また以後公開されているリファレンスによる情報をまとめた.
iOS8から変わる点はおおきくわけると以下の3つになる.
| #!/bin/bash | |
| export JAVA_HOME="/usr/java/jdk1.7.0_45/jre" | |
| export KEYTOOL=$JAVA_HOME/bin/keytool | |
| # Password settings | |
| # | |
| # These are the default password settings used by the openssl and | |
| # keytool programs. All passwords can be changed, EXCEPT the | |
| # CACERT_PASSWD, as this is the default password that the SUN cacert | |
| # from the JRE uses! | |
| # |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| GITBUCKET_VERSION = "1.12" | |
| HTTP_PORT = 8080 | |
| SSH_PORT = 29418 | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "precise64" | |
| config.vm.box_url = "http://files.vagrantup.com/precise64.box" |
| sudo yum -y update | |
| sudo yum -y groupinstall "Development Tools" | |
| sudo yum -y install git libcurl-devel libcurl | |
| # jansson C json library | |
| wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-2.6-1.el6.x86_64.rpm | |
| wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-devel-2.6-1.el6.x86_64.rpm | |
| sudo yum -y install jansson-2.6-1.el6.x86_64.rpm | |
| sudo yum -y install jansson-devel-2.6-1.el6.x86_64.rpm | |
| var myApp = angular.module('myApp', []); | |
| myApp.directive('googleplace', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, model) { | |
| var options = { | |
| types: [], | |
| componentRestrictions: {} | |
| }; |
| // Single-byte error correction for messages <255 bytes long | |
| // using two check bytes. Based on "CA-based byte error-correcting code" | |
| // by Chowdhury et al. | |
| // | |
| // rmmh 2013 | |
| // | |
| // This code is released into the public domain. | |
| uint8_t lfsr(uint8_t x) { | |
| return (x >> 1) ^ (-(x&1) & 0x8E); |