Skip to content

Instantly share code, notes, and snippets.

View yukirii's full-sized avatar
✈️

Yuki Kirii yukirii

✈️
View GitHub Profile
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@jugyo
jugyo / full-text-search-by-groonga-and-ruby.md
Created August 15, 2012 07:35
Groonga + Ruby で全文検索

Groonga + Ruby で全文検索

groonga のインストール

$ brew install groonga

rroonga のインストール

Ruby から groonga を使うために rroonga というライブラリを使う:

@rummelonp
rummelonp / faraday.md
Last active May 20, 2022 12:23
Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた

[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた

@novi
novi / gist:1631319
Created January 18, 2012 05:50
Arch LinuxをMacBook Air 3,2のSDカードにインストールメモ

Arch LinuxをMacBook Air 3,2のSDカードにインストールメモ

Bootcampの領域を壊さずに内蔵SDカードリーダーのSDメモリへインストールしてみた。

パーティション

  • /dev/disk0s1: EFIシステム
  • /dev/disk0s2: HFS+ OS X Lion (rEFItをインストール済)
  • /dev/disk0s3: Recovery (OS X Lion)
  • /dev/disk0s4: Windows 7
@ismasan
ismasan / purge.vcl
Created January 27, 2011 18:30
Varnish VCL example for purging wildcard URLs
# This goes in vcl_recv
# It gives you:
# curl -X PURGE http://some.example.com/.*
# curl -X PURGE http://some.example.com/blog/.*
# curl -X PURGE http://some.example.com/blog/2011/bar.html
# curl -X PURGE http://another.example.com/.*
#
if (req.request == "PURGE") {
# Wildcard, per-domain purging
purge("req.http.host == " req.http.host " && req.url ~ " req.url "$");

http://valgrind.org/docs/manual/faq.html#faq.deflost

  • definitely lost

    • メモリリークしてるから, とにかく直せ!
  • indirectly lost

    • ポインタベースの構造 (ツリーやリストなど) があったとき, そのルートノードが開放されていない (definitely lost) 場合, 子ノードは全て indirectly lost となる. ルートノードなどの definitely lost を修正すれば, この indirectly lost も消える.
  • possibly lost

  • ポインタをうまいこといじくり回さない限り, メモリリークしてしまう.