Skip to content

Instantly share code, notes, and snippets.

View rch850's full-sized avatar
:shipit:
Delivery every week

rch850 rch850

:shipit:
Delivery every week
View GitHub Profile
@apk
apk / websock.sh
Created April 18, 2012 15:51
A web socket server as a bash script.
#!/bin/bash
# WebSocket shell, start & browse to http://<Host>:6655/
# Requires bash 4.x, openssl.
# Author: rootshell@corelogics.de (which isn't me, apk)
coproc d { nc -l -p 6656 -q 0; }
nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE
HTTP/1.1 200 OK
<html><head><script language="javascript">
var url = location.hostname + ':' + (parseInt(location.port) + 1);
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@remore
remore / ltsv2csv.rb
Last active December 17, 2015 01:48
usage: ruby ltsv2csv.rb --file hoge.ltsv
#!/usr/bin/ruby
require 'optparse'
separator = ","
source = false
ARGV.clone.options do |opts|
opts.banner = "Usage: #{$0} [options]"
opts.on('-f', '--file=/path/to/file', String, 'Source file'){|v|
source = v
@stuartsierra
stuartsierra / fresh-chrome.sh
Last active October 13, 2020 16:07
Launch new instances of Google Chrome on OS X with isolated cache, cookies, and user config
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@katzchang
katzchang / readme.md
Last active December 31, 2015 03:09
[Fluentd Advent Calendar]広告配信にFluentdを使っていますという話 @katzchang.gist

ワイワイ!これはFluentd Advent Calendar 12日目の記事です。

私は現在、VOYAGE GROUPの子会社であるZucksというところで、Zucks Adnetworkという広告配信サービスを作っています。で、その中でFluentdが活躍しているよーという話をしてみます。事例紹介ってやつです。

置かれた状況

Zucks Adnetworkは、いわゆる広告配信サービスです。

広告配信サービスは配信した結果を何らかの形で集約して、よーするにお金がどうチャリンチャリンしてるかを確かめる必要があるわけです。その一つのやり方として、「配信結果を1件ずつ行分割したテキストファイルの出力しておいて、そいつをいい感じにまとめて、数え上げる」みたいな方式があって、つまるところ、私たちはそうやってます。

% git clone https://github.com/keiko713/rails-todo.git
% cd rails-todo
% bundle install --without production
% foreman run bundle exec rake db:migrate
% foreman start
localhost:5000 で確認する。
@libero18
libero18 / setup.yml
Created January 17, 2015 05:02
ansible-playbook setup.yml
---
- hosts: 127.0.0.1
connection: local
tasks:
- name: Make sure using latest Homebrew
shell: "brew update"
- name: Update already-installed formula
shell: "brew upgrade"
@ayakix
ayakix / IsMisDo100Yen
Last active August 29, 2015 14:16
ミスドが100円セール中かどうかをチェックするAPI
function doGet(e) {
var json = {"isSale": false};
var response;
try {
response = UrlFetchApp.fetch("http://www.misterdonut.jp/sale/index.html");
} catch(err) {
return createOutput(json);
}
var regexp = /(\d+)年(\d+)月(\d+)日.*(\d+)月(\d+)日/;
@voluntas
voluntas / webrtc.rst
Last active June 27, 2024 02:25
WebRTC コトハジメ
@hashrock
hashrock / diag.md
Last active February 26, 2024 05:51
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など