Skip to content

Instantly share code, notes, and snippets.

View mazgi's full-sized avatar

Hidenori Matsuki mazgi

View GitHub Profile
@mazgi
mazgi / Vagrantfile
Created December 13, 2016 14:02
My favorite 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|
m.vm.box = "ubuntu/trusty64"
@mazgi
mazgi / weechat.md
Created December 12, 2016 11:48
weechat
$ grep url ~/.weechat/script.conf
url = "https://weechat.org/files/plugins.xml.gz"
url_force_https = on
$ curl -LI 'https://weechat.org/files/plugins.xml.gz'
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
mazgi / memo.md
Created November 29, 2016 03:52
Homebrew LFTP
$ pwd
/Users/hidenori.matsuki/Creations/mazgi/homebrew-core
$ git remote -v
origin	git@github.com:mazgi/homebrew-core.git (fetch)
origin	git@github.com:mazgi/homebrew-core.git (push)
$ git log -1
commit 21edd87ef66064af8860f7593696dda18c88ad43
Author: Hidenori MATSUKI <MATSUKI.Hidenori@gmail.com>
Date: Tue Nov 29 12:09:36 2016 +0900
@mazgi
mazgi / foo.md
Created November 28, 2016 07:11

foo bar

foo
bar

@mazgi
mazgi / console.md
Last active February 27, 2016 18:43
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
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.36-gentoo-r5
# Sun Jan 30 02:06:39 2011
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
@mazgi
mazgi / console.log
Last active December 25, 2015 17:09
to detect missing documents.
[mazgi@Ardbeg] $ bundle exec rake outdated
docs/ja/config-file.txt : 4 days, 10 hours
docs/ja/install-by-gem.txt : 13 hours
docs/ja/out_mongo.txt : 153 days, 19 hours
docs/ja/quickstart.txt : 14 hours
Following articles not to exist in "br":
changelog.txt
config-file.txt
faq.txt
Following article not to exist in "eu":
@mazgi
mazgi / console_window.jsx
Created August 9, 2013 11:54
JSXでログコンソールっぽいものつくってみた
var dlg = new Window('dialog', 'Alert Box Builder'); dlg.msgPnl = dlg.add('panel', undefined, 'Messages');
dlg.msgPnl.titleSt = dlg.msgPnl.add('statictext', undefined, 'Alert box title:');
dlg.msgPnl.titleEt = dlg.msgPnl.add('edittext', undefined, 'Sample Alert');
dlg.msgPnl.msgSt = dlg.msgPnl.add('statictext', undefined, 'Alert message:');
var date = new Date();
// create list box with two titled columns
var list = dlg.msgPnl.add ('ListBox', [0, 0, 400, 180], 'asd', {numberOfColumns: 4, showHeaders: true, columnTitles: ['Index', 'Date', 'Function', 'Message']});
// add an item for the first row, with the label value for the first column
@mazgi
mazgi / file0.txt
Created July 20, 2013 09:02
Adobe JSXで特定のjsxファイルが存在すれば読み込む ref: http://qiita.com/mazgi/items/439d7dccb10d9b118db4
$ tree
.
├── lib
│   └── lib1.jsx
└── main.jsx
@mazgi
mazgi / file0.txt
Created July 18, 2013 11:11
sudoのconfigureオプションを確認する ref: http://qiita.com/mazgi/items/6f5fdb239b60e6d0f314
localhost ~ # sudo -V | grep 'Configure options:'
Configure options: --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-zlib=system --with-secure-path=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin --with-editor=/usr/libexec/editor --with-env-editor --without-insults --without-all-insults --with-ldap_conf_file=/etc/ldap.conf.sudo --with-ldap --enable-nls --with-pam --without-skey --without-selinux --with-sendmail --without-opie --without-linux-audit --with-timedir=/var/db/sudo --with-plugindir=/usr/lib64/sudo --docdir=/usr/share/doc/sudo-1.8.6_p7
localhost ~ # sudo -V | grep 'ldap.conf path:'
ldap.conf path: /etc/ldap.conf.sudo