Skip to content

Instantly share code, notes, and snippets.

MATSUKI Hidenori mazgi

Block or report user

Report or block mazgi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mazgi / Vagrantfile
Created Dec 13, 2016
My favorite Vagrantfile
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.define "ubuntu14" do |m| = "ubuntu/trusty64"
$ grep url ~/.weechat/script.conf
url = ""
url_force_https = on
$ curl -LI ''
HTTP/1.1 200 OK
Date: Mon, 12 Dec 2016 11:47:32 GMT
Server: Apache
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
mazgi /
Created Nov 29, 2016
Homebrew LFTP
$ pwd
$ git remote -v
origin (fetch)
origin (push)
$ git log -1
commit 21edd87ef66064af8860f7593696dda18c88ad43
Author: Hidenori MATSUKI <>
Date:   Tue Nov 29 12:09:36 2016 +0900
mazgi /
Last active Feb 27, 2016
btrfs compression
# uname -a
Linux test-04 4.1.15-gentoo-r1 #1 SMP Sat Feb 27 15:52:30 2016 x86_64 Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz GenuineIntel GNU/Linux
# btrfs --version
btrfs-progs v4.0.1
# gdisk -l /dev/vdb
GPT fdisk (gdisk) version 0.8.10
mazgi /
Last active Aug 31, 2016
fio on btrfs raid
  • bs=4k
fio -rw=read -bs=4k -size=100m -numjobs=40 -runtime=60 -direct=1 -invalidate=1 -ioengine=libaio -iodepth=32 -iodepth_batch=32 -group_reporting -name=seqread
fio -rw=write -bs=4k -size=100m -numjobs=40 -runtime=60 -direct=1 -invalidate=1 -ioengine=libaio -iodepth=32 -iodepth_batch=32 -group_reporting -name=seqwrite
fio -rw=randread -bs=4k -size=100m -numjobs=40 -runtime=60 -direct=1 -invalidate=1 -ioengine=libaio -iodepth=32 -iodepth_batch=32 -group_reporting -name=randread
fio -rw=randwrite -bs=4k -size=100m -numjobs=40 -runtime=60 -direct=1 -invalidate=1 -ioengine=libaio -iodepth=32 -iodepth_batch=32 -group_reporting -name=randwrite
  • bs=16k
mazgi /
Last active Oct 5, 2015
Setup network configuration on Gentoo Linux
set -e
function read_yes_or_no(){
echo -n "${1} [y/N] "
read YES_OR_NO
case ${YES_OR_NO^^} in
root@sysresccd /mnt/gentoo % grep -vE '^\s*(#|$)' etc/locale.gen 
en_US ISO-8859-1
en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8
root@sysresccd /mnt/gentoo % grep -vE '^\s*(#|$)' etc/portage/make.conf
CFLAGS="-O2 -pipe"
You can’t perform that action at this time.