- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
#!/bin/bash | |
# WebSocket shell, start & browse to http://<Host>:6655/ | |
# Requires bash 4.x, openssl. | |
# Author: [email protected] (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); |
#!/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 |
#!/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 |
ワイワイ!これは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 で確認する。 |
--- | |
- 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" |
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+)日/; |
更新: | 2024-05-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ