Skip to content

Instantly share code, notes, and snippets.

@furandon-pig
furandon-pig / officeui_dropdown_helper.js
Created December 6, 2015 10:04
Office UI Fabric Advent Calendar 2015用のドロップダウンボックスのサンプルプログラムで使用しているヘルパスクリプトです。
/*
* Office UI Fabric Advent Calendar 2015用のドロップダウンボックスの
* サンプルプログラムで使用しているヘルパスクリプト
*
* 以下のサンプルプログラム(MIT License)のJSコードをサンプル用に一部
* 修正しています。
* Dropdown
* http://dev.office.com/fabric/components/dropdown
*/
@furandon-pig
furandon-pig / create_virtual_instance.sh
Created September 26, 2015 01:53
FreeBSDのVPS(Virtual Private Systems)コンテナを作成するスクリプトです。
#!/bin/sh
VPS_ROOT=/opt/vps
if [ $# -ne 2 ]; then
echo 'err: too few arguments.'
echo ' ./create_virtual_instance.sh <container_name> <addr>'
exit 1
fi
@furandon-pig
furandon-pig / manga_time_bnf.txt
Created August 1, 2015 10:36
まんがタイムシリーズのBNF
/*
* まんがタイムシリーズのBNFです。
* 以下のURLでBNF→構文図式に変換します。
* http://bottlecaps.de/rr/ui
*
* マルチバイト文字を含む要素では横幅が正しく計算されないようなので、
* 空白を含めることで対応しています。
* (入力文字と同じ数の空白を入れるとちょうど良さそうです)
*/
@furandon-pig
furandon-pig / pkgsrc_firefox_depend_package.svg
Created July 20, 2015 18:34
pkgsrcにおける、firefox依存パッケージの関連グラフです。
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@furandon-pig
furandon-pig / pkg_depend.sh
Created July 20, 2015 18:02
pkgsrcのパッケージ依存関係をdot形式(Graphviz)で出力するスクリプトです。
#!/bin/sh
# 作業用ディレクトリ
TMP_DIR=/tmp
CHECKED_LIST=$TMP_DIR/checked_list.txt
LICENSE_LIST=$TMP_DIR/license_list.txt
# パッケージの依存関係をdot形式で出力するルーチン
# (シェルスクリプト中から再帰的に呼ばれる)
pkg_depend()
@furandon-pig
furandon-pig / diff_win10pcap_build_vc2008express
Created June 29, 2015 08:39
Win10PcapをVisual C++ 2008 Expressでビルドする際の修正内容です。
diff --git a/Installer/Installer.rc b/Installer/Installer.rc
index 3d7ad54..80d3490 100644
--- a/Installer/Installer.rc
+++ b/Installer/Installer.rc
@@ -7,7 +7,7 @@
//
// Generated from the TEXTINCLUDE 2 resource.
//
-#include "afxres.h"
+#include "windows.h"
@furandon-pig
furandon-pig / seaster_build_20150524
Created May 26, 2015 10:42
Seaster・OSv Hands-on#1でのseastarビルドログです。
# Seastarのビルド
* Seaster・OSv Hands-on#1(http://connpass.com/event/15004)
* Fedora21-serverの環境で1CPU,メモリ2028MBでビルドした
* seastar(https://github.com/cloudius-systems/seastar)の"Building seastar on Fedora 21"の手順を実施し、ビルドに必要なパッケージをインストールした
* Fedora21-serverでは、上記パッケージに加え、libxml2-devel,libasan,libubsanが必要だった。
## ビルド記録
* allocator_testのリンク時にlibxml2のリンクで失敗
@furandon-pig
furandon-pig / linux_nfs_memo
Created May 14, 2015 09:31
Linuxカーネルのビルド・テスト用マシンの構築メモ
# Linuxカーネルのビルド・テスト用マシンの構築
(あとでQiitaにまとめる内容のメモです)
* [Linux-4.0のライブパッチ機能を試してみる会(1)](http://connpass.com/event/14416/ "Linux-4.0のライブパッチ機能を試してみる会(1)")向けのメモです。
## マシン構成
* 内部ネットワーク側でビルド・テストマシンをNFSマウントする
@furandon-pig
furandon-pig / dot.config.linux-4.0_enable_livepatch
Created April 22, 2015 08:01
Linux-4.0でライブパッチ機能を有効にしたカーネルコンフィグです。
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.0.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@furandon-pig
furandon-pig / list_port_forward_setting.sh
Last active August 29, 2015 14:14
VirtualBoxでVM毎のポートフォワーディング設定を一覧表示するシェルスクリプトです。
#!/bin/sh
# VirtualBoxでVM毎のポートフォワーディング設定を一覧表示するシェルスクリプトです。
# NATのホスト側ポート番号が重複していないかの確認用に利用します。
#
# "-t"オプションを付与するとHTMLで結果を出力するので、w3m等で
# 見やすく整形できます。
# $ ./list_port_forward_setting.sh -t | w3m -T text/html
if [ "$1" = "-t" ]; then