Skip to content

Instantly share code, notes, and snippets.

View kozo2's full-sized avatar

Kozo Nishida kozo2

View GitHub Profile
>>> Installing (1 of 1) app-shells/zsh-5.0.2
*
* If you want to enable Portage completions and Gentoo prompt,
* emerge app-shells/zsh-completion and add
* autoload -U compinit promptinit
* compinit
* promptinit; prompt gentoo
* to your ~/.zshrc
*
* Also, if you want to enable cache for the completions, add
SHA1 (metarep-v1.2.0-i386.ovf)= bfbde6e16aafcb53afbe4034feb5d6596ebcac23
SHA1 (metarep-i386_2.vmdk)= 0a2379cb22a14515b528458046e48055e653011d
@kozo2
kozo2 / gist:4975944
Created February 18, 2013 08:41
spatiocyte make command
~/workspace/ecell3-spatiocyte% CPLUS_INCLUDE_PATH=/usr/include/gtkmm-2.4:/usr/include/glibmm-2.4:/usr/lib/x86_64-linux-gnu/glibmm-2.4/include:/usr/include/glib-2.0:/usr/lib/x86_64-linux-gnu/glib-2.0/include:/usr/include/sigc++-2.0:/usr/lib/x86_64-linux-gnu/sigc++-2.0/include:/usr/include/giomm-2.4:/usr/include/gdkmm-2.4:/usr/include/gtk-2.0:/usr/include/cairo:/usr/include/pango-1.0:/usr/lib/x86_64-linux-gnu/gtk-2.0/include:/usr/include/gdk-pixbuf-2.0:/usr/lib/x86_64-linux-gnu/gdkmm-2.4/include:/usr/lib/x86_64-linux-gnu/pangomm-1.4/include:/usr/include/cairomm-1.0:/usr/include/freetype2:/usr/include/pangomm-1.4:/usr/include/atk-1.0:/usr/lib/x86_64-linux-gnu/gtkmm-2.4/include:/usr/include/atkmm-1.6:/usr/include/gtkglextmm-1.2:/usr/local/hdf5/include LD_LIBRARY_PATH=/usr/local/hdf5/lib LIBRARY_PATH=/usr/local/hdf5/lib make
@kozo2
kozo2 / gist:5240941
Created March 25, 2013 21:28
tc error on emacs24.3
Debugger entered--Lisp error: (error "Table corrupted at line 1.")
signal(error ("Table corrupted at line 1."))
error("Table corrupted at line %d." 1)
tcode-load-table-1("tc-tbl")
tcode-load-table("tc-tbl")
tcode-use-package("japanese-T-Code")
apply(tcode-use-package "japanese-T-Code" nil)
activate-input-method("japanese-T-Code")
tcode-activate-input-method()
call-interactively(tcode-activate-input-method record nil)
@kozo2
kozo2 / wheezy-releasenote-5-5
Last active December 16, 2015 18:09
5.5. NetworkManager
NetworkManager can detect if a network interface is managed by ifupdown in order to avoid conflicts, but is not able to do so with other networking management programs such as wicd-daemon. Problems and unexpected behavior can result if two such daemons are managing the same interface when attempting to make a networking connection.
NetworkManagerはifupdownによって管理されていればネットワークインターフェースを検出しますが、wicd-daemonのような他のネットワーク管理プログラムが動作していると検出できません。
2つのdaemonが同じインターフェースを管理していると、ネットワーク接続を試みた際に問題や期待しない動作が起こります。
For instance, if wicd-daemon and NetworkManager are both running, attempting to use a wicd client to make a connection will fail with the error message:
たとえば wicd-daemonとNetworkManagerが両方動作しているとwicdクライアントが接続試みた際に下記のエラーメッセージを出して失敗します。
Attempting to use a NetworkManager client may likewise fail with the message:
@kozo2
kozo2 / kansaidebian-72-debian-and-ubuntu.md
Last active March 23, 2021 05:18
第72回関西Debian勉強会「DebianとUbuntuの違いを知ろう」

「DebianとUbuntuの違いを知ろう」

この話の趣旨

「Linuxはとりあえず人気のあるUbuntuを使っている」という方は多いのでは 無いでしょうか。
この話はDebianとUbuntuの違いを挙げ、どちらがみなさんに適しているか考え てみていただくことを目的としています。

supportされるarchitecture

@kozo2
kozo2 / gentoo-book.md
Created May 26, 2013 13:34
Gentoo本を作成する

Gentooが最強のLinuxである

  1. なぜGentooが最強なのか
  2. 最強のインストール
  3. 最強のemerge
  4. 最強のlayman
@kozo2
kozo2 / .vimrc
Last active December 18, 2015 05:19
tcvime.vimをtcodeで使う場合の設定
let tcvime_keymap_for_help = 'tcode'
if has('keymap')
set iminsert=0 imsearch=0
inoremap <C-J> <C-R>=<SID>EnableKeymap('tcode')<CR>
inoremap <silent> <C-L> <C-R>=<SID>DisableKeymap()<CR>
inoremap <silent> <ESC> <ESC>:set imsearch=0<CR>
nnoremap <silent> <C-K>k <Plug>TcvimeNKatakana
vnoremap <silent> <C-K>k <Plug>TcvimeVKatakana
vnoremap <silent> <C-K>a <Plug>TcvimeVKanji2Seq
@kozo2
kozo2 / pycon.md
Last active December 19, 2015 03:29
PyCon 2013 APAC CfP

URL

http://www.e-cell.org
http://lbcs.e-cell.org

Organization

Riken, QBiC

Short biography

Koichi Takahashi is the leader of laboratory of biochemical simulation in Riken QBiC. He is also the leader of E-Cell project.

@kozo2
kozo2 / rc.lua
Created July 13, 2013 04:47 — forked from myuhe/rc.lua
--- Spawns cmd if no client can be found matching properties
-- If such a client can be found, pop to first tag where it is visible, and give it focus
-- @param cmd the command to execute
-- @param properties a table of properties to match against clients. Possible entries: any properties of the client object
function run_or_raise(cmd, properties)
local clients = client.get()
local focused = awful.client.next(0)
local findex = 0
local matched_clients = {}
local n = 0