Skip to content

Instantly share code, notes, and snippets.

@pwenzel
pwenzel / git-log-to-tsv.sh
Created June 6, 2012 20:53
Git Log to Tab-Delimited CSV File
# Local Dates:
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt
# ISO Dates:
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt
@teppeis
teppeis / tenkaichi-git.md
Last active April 29, 2023 14:58
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@kuwabarahiroshi
kuwabarahiroshi / gist:4266118
Created December 12, 2012 08:33
Solr1.4系、Solr3.x系におけるPivot Facet検索について下記によい記事があったのでその抄訳です。 http://loose-bits.com/2011/09/20/pivot-facets-solr.html

Pivot Faceting (Decision Trees) in Solr 1.4.

http://loose-bits.com/2011/09/20/pivot-facets-solr.html

Solrのピボットファセット

Solrのファセット機能は、ある単語や語句、フィールドの値に対する検索結果をさらに細分化して、それらの集計数を返してくれます。 ファセットはそれ自身強力な集計ツールであると同時に、検索結果をもう一段深く絞り込む際のプレビューのように機能します。

Solr4.0より前は、ファセット機能は1階層の検索条件に対してのみ有効でした。つまり、あるクエリのもとに「'foo'フィールドについての集計」のようなことしかできなかったのです。 Solr4.0からピボットファセットという(決定木とも呼ばれる)機能が導入されました。これにより、「'bar'フィールドの値それぞれに対して、'foo'フィールドの値を集計する」といったことができるようになりました。独立した複数のSolrフィールドにまたがった多階層ファセットのことです。

@holysugar
holysugar / growthforecast.conf
Created March 15, 2013 02:44
/etc/init/growthforecast.conf with upstart
start on startup
stop on runlevel [016]
respawn
env USER="growthforecast"
env PERLVER=5.16.2
env PROG_PATH=/home/${USER}/perl5/perlbrew/perls/perl-${PERLVER}/bin/growthforecast.pl
env LOG="/var/log/growthforecast/growthforecast.log"
env MYSQL_USER=growthforecast

2013 年の新卒研修メニュー

Rails Tutorial

目的

  • 2013 年にモダンな方法で一通り Web アプリケーションを自分一人で作れるようになってもらう
  • 作る過程で Web 開発で必要とされるアプリケーションレイヤのスキルセットを身につけてもらう

教科書

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。

Composer

@masuidrive
masuidrive / geohash4jp.csv
Created June 12, 2013 13:33
geohash 4桁の市区町村マップ
wu24 24.345703125 123.92578125 沖縄県 八重山郡 竹富町 47381
wudv 26.279296875 127.79296875 沖縄県 中頭郡 中城村 47328
wuep 26.630859375 128.14453125 沖縄県 国頭郡 東村 47303
wvh1 28.388671875 129.55078125 鹿児島県 奄美市 46222
wvku 30.322265625 130.60546875 鹿児島県 熊毛郡 屋久島町 46505
wvmj 30.498046875 130.95703125 鹿児島県 熊毛郡 中種子町 46501
wvmn 30.673828125 130.95703125 鹿児島県 西之表市 46213
wvsc 31.201171875 130.60546875 鹿児島県 指宿市 46210
wvt1 31.201171875 130.95703125 鹿児島県 肝属郡 肝付町 46492
wvsd 31.376953125 130.25390625 鹿児島県 南さつま市 46220
@voluntas
voluntas / sentry_django.rst
Last active March 26, 2020 01:23
Sentry + Django コトハジメ
@y-ken
y-ken / nginx-elasticsearch-and-kibana3-proxy.conf
Last active December 27, 2015 23:49
Route Kibana-v3 and plugins of Head/bigdesk requests to ElasticSearch with authenticated user's own index with an Nginx reverse-proxy.
#
# Nginx proxy for Elasticsearch + Kibana
#
# In this setup, we are password protecting the saving of dashboards. You may
# wish to extend the password protection to all paths.
#
# Even though these paths are being called as the result of an ajax request, the
# browser will prompt for a username/password on the first request
#
# If you use this, you'll want to point config.js at http://FQDN:80/ instead of
@sonots
sonots / gist:8000240
Last active December 31, 2015 14:29
Recommended fluent-plugin's option names (draft)

Recommended option names

Option Description
tag The output tag name
add_tag_prefix Add tag prefix for output message
remove_tag_prefix Remove tag prefix for output message
replace_invalid_sequence Replace invalid byte sequence in UTF-8 with '?' character if true
interval The interval to calculate in seconds. Default is 60s
aggregate Calculate for each tag or all. The default value is tag