Skip to content

Instantly share code, notes, and snippets.

View nabeken's full-sized avatar

Tanabe Ken-ichi nabeken

View GitHub Profile
低速になるのはppp(8)で割り込み/コンテキストスイッチが多発するためか?
pppoe(8)で 40Mbps〜70Mbps あたり。つまるとガクっと数値が落ちる(その間通信もつまる)。
procs memory page disk traps cpu
r b w avm fre flt re pi po fr sr sd0 int sys cs us sy id
0 0 0 265248 1334864 74 0 0 0 0 0 0 46 668 113 0 0 100
0 0 0 265248 1334864 77 0 0 0 0 0 0 43 655 118 0 0 100
0 0 0 265248 1334864 405 0 0 0 0 0 0 46 760 112 0 0 100
0 0 0 265248 1334864 74 0 0 0 0 0 0 3141 50811 11431 1 10 89
@nabeken
nabeken / ldns-1.6.13.ebuild
Created July 14, 2011 14:24
unbound.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
PYTHON_DEPEND="python? 2:2.5"
inherit autotools eutils python
DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C"
helpers do
def protected!
response = callcc do |cont|
auth = Rack::Auth::Digest::MD5.new(cont, "Administrator only") do |username|
"password" # username is ignored, or Password is always 'password' in this example.
end
auth.opaque = $$.to_s
auth.call(request.env)
end
[quagga_*]
user root
env.as_number ${YOUR_AS_NUMBER}
#!/bin/sh
function gettree {
commit=$1
dir=$2
git ls-tree ${commit} | grep ${dir} | cut -d' ' -f1 | cut -d' ' -f3
}
function getmsg {
-- Include awesome libraries, with lots of useful function!
require("awful")
require("beautiful")
-- {{{ Variable definitions
-- This is a file path to a theme file which will defines colors.
theme_path = "/home/nabeken/.config/awesome/default/theme"
-- This is used later as the default terminal to run.
terminal = "mlterm --sb=false"