Skip to content

Instantly share code, notes, and snippets.

View fujieda's full-sized avatar

Kazuhiro Fujieda fujieda

View GitHub Profile
@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: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 / 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 / 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);