Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fujieda's full-sized avatar

Kazuhiro Fujieda fujieda

View GitHub Profile
@fujieda
fujieda / l2arc_write
Created December 2, 2011 12:01
A dtrace script to investigate the behavior of L2ARC writing to its storages.
#!/usr/sbin/dtrace -qs
l2arc_write_buffers:entry
{
self->guid = ((l2arc_dev_t *)arg1)->l2ad_vdev->vdev_guid;
}
l2arc_write_buffers:return
{
printf("%lu: dev: %llx written: %ld\n", timestamp / 1000000, self->guid, arg1);
@fujieda
fujieda / gist:3430536
Created August 22, 2012 23:29
HTML to read favicon in advance
<script type="text/javascript">
<!--
image = new Image();
image.src="favicon.ico";
//-->
</script>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="icon" href="favicon.ico"/>
@fujieda
fujieda / gist:3967962
Created October 28, 2012 07:27
E-mail from amazon.com

Hello from Amazon.

We are writing because the home country registered to your Kindle account may not match your country of residence. Due to publishing rights, the home country registered to your account must match your country of residence.

To continue purchasing titles available for The United States, please send a copy of your valid government-issued identity card, passport, or a utility bill received within the previous 90 days to our secure fax line:

Within the US: 206-266-1838
Outside the US: (00)1-206-266-1838

For your security, you may obscure the passport, ID, or account number. However, we ask that you do not obscure any portion of your name, your address, or any expiration or statement dates.

@fujieda
fujieda / arc_miss.txt
Created December 14, 2012 11:44
Data about ARC misses in ZFS on ftp.jaist.ac.jp
tracing...
arc
nscd, fop_read, 1
sched, fop_lookup, 1
sshd, fop_read, 1
rsync, fop_mkdir, 2
httpd, others, 3
dosync, fop_lookup, 4
rsync, fop_create, 4
kcfd, fop_readdir, 5
@fujieda
fujieda / gist:4427166
Created January 1, 2013 12:47
【これが海の十二支だ!】をパクリツイートしたアカウント一覧。パクリツイートの嫌いな人は http://kill1000favs.exsen.org/?r4s=1 でR4Sするといいよ。
614_zeus
Angelic_LaLa
Aoi_sgt
ArcanistN
BLACK__LAGOON
Eternal1996
GasyapokeXTREME
Gyo__Rai
KiyAto28
MASSEpiano
@fujieda
fujieda / gist:4743730
Created February 9, 2013 03:41
Set c-basic-offset to 2.
(add-hook 'c++-mode-hook
(lambda ()(setq c-basic-offset 2)))
@fujieda
fujieda / raspberrypi.pl
Last active December 12, 2015 09:29
A Perl script to mirror SD card images of Raspberry Pi
#!/usr/bin/env perl
# A script to mirror SD card images of Raspberry Pi
# Licensed under the MIT license: http://fujieda.mit-license.org/2013
use strict;
use HTTP::Tiny;
use HTTP::Date;
use File::Path qw(mkpath);
my $rpi = "raspberrypi";
@fujieda
fujieda / ConfigFileSettingsProvider.cs
Created March 22, 2013 14:18
Formの設定プロパティを実行ファイルのあるディレクトリに"アプリケーション名.conf"で保存するための設定プロバイダー。 Settings.csでSettingsクラスに属性として[SettingsProvider(typeof(MyNamespace.ConfigSettingsProvider))]のように指定する。Settings.csはかなり見付けにくい。プロジェクトのプロパティから「設定」を選んで表示されるデザイナーからコードの表示を選ぶと開ける。 This program is licensed under the MIT License: http://fujieda.mit-license.org/2013
// Formの設定プロパティを実行ファイルのあるディレクトリに"アプリケーション名.conf"で保存するための設定プロバイダー。
// Settings.csでSettingsクラスに属性として[SettingsProvider(typeof(MyNamespace.ConfigSettingsProvider))]のように指定する。
// Settings.csはかなり見付けにくい。プロジェクトのプロパティから「設定」を選んで表示されるデザイナーからコードの表示を選ぶと開ける。
// This program is licensed under the MIT License:
// http://fujieda.mit-license.org/2013
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
@fujieda
fujieda / gist:9369605
Last active August 29, 2015 13:57
大型艦建造記録
秘書艦金剛改二 大和狙い
4000/5000/6000/2000/20
1/8 扶桑
1/9 まるゆ
1/10 長門
1/11 比叡
1/13 日向
1/14 長門
1/15 陸奥
4000/6000/6000/2000/20

KancolleSniffer

[KancolleSniffer]は、艦これのサーバーとブラウザの間の通信をキャプチャして、幅285px高さ550pxのウィンドウに以下の情報をすべて表示するツールです。

  • 入渠、建造、遠征の終了を知らせる自動式タイマー
  • 艦娘数、装備数、バケツ数
  • 起動中に稼いだ戦果(ボーナス戦果を除く)
  • 艦娘の耐久、コンディション値、レベル、次のレベルまでの経験値
  • 艦隊の制空値