Skip to content

Instantly share code, notes, and snippets.

@mongrelP
mongrelP / Ubiquity-nicovideo-search.js
Created January 16, 2009 02:33
[Ubiquity] ニコニコ動画
/**
* nicovideo-search
*
*/
makeSearchCommand({
name: "nicovideo",
url: "http://www.nicovideo.jp/search/{QUERY}",
icon: "http://www.nicovideo.jp/favicon.ico",
description: "Searches nicovideo for your words.",
});
####
# .zshrc file
####
export LANG=ja_JP.UTF-8
export MANPATH=/usr/local/man:/usr/share/man
LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:/usr/X11R6/lib:/usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
# PATH
export INCLUDE=$HOME/include:/usr/local/include:/usr/include
@mongrelP
mongrelP / mikutter
Created May 12, 2011 07:45
常にmikutterのtrunk最新を追っかけたい人柱向けシェルスクリプト。
#!/bin/sh
# 常にtrunk最新を追っかけたい人柱向けシェルスクリプト。
# 依存関係は割愛。
# svn co svn://toshia.dip.jp/mikutter/trunk ~/.mikutter/src
# ↑やってからこのファイルをパスの渡っているとこ(~/binとか)にDLしてchmod +x。
# 好きなruby使いたいなら適当に変更してね
svn up $HOME/.mikutter/src
ruby $HOME/.mikutter/src/mikutter.rb $@
@mongrelP
mongrelP / cygwin.bat
Created May 24, 2011 10:23
cygwin with mintty
@echo off
call "C:\Program Files\Microsoft Visual Studio 10.0\VC" x86
set CYGWIN="winsymlinks tty emacs nodosfilewarning glob"
set LANG=ja_JP.UTF-8
set LC_CTYPE=ja_JP.UTF-8
REM bash --login -i
@mongrelP
mongrelP / vector_function.rb
Created June 20, 2011 09:06
Vector_Function
#Licence:NYSL
#http://www.kmonos.net/nysl/
#
class Matrix
def []=(i,j,x)
@rows[i][j]=x
end
end
class Vector
@mongrelP
mongrelP / mingw-search
Created July 4, 2011 10:07
MinGW Package search tool
@mongrelP
mongrelP / 00_bootstrap.sh
Created July 12, 2011 11:15
00_bootstrap.sh
#!/bin/sh
./bootstrap-prefix.sh $EPREFIX tree
./bootstrap-prefix.sh $EPREFIX/tmp make
./bootstrap-prefix.sh $EPREFIX/tmp wget
./bootstrap-prefix.sh $EPREFIX/tmp sed
#./bootstrap-prefix.sh $EPREFIX/tmp coreutils #coreutils5
./bootstrap-prefix.sh $EPREFIX/tmp coreutils6 #coreutils6
./bootstrap-prefix.sh $EPREFIX/tmp findutils5
./bootstrap-prefix.sh $EPREFIX/tmp tar
./bootstrap-prefix.sh $EPREFIX/tmp patch
@mongrelP
mongrelP / 01_setting.sh
Created July 12, 2011 11:19
01_setting.sh
#!/bin/sh
hash -r #if use csh : rehash
emerge --oneshot sed
emerge --oneshot --nodeps bash
emerge --oneshot wget
emerge --oneshot --nodeps baselayout-prefix
emerge --oneshot --nodeps xz-utils
emerge --oneshot --nodeps m4
emerge --oneshot --nodeps flex
emerge --oneshot --nodeps bison
@mongrelP
mongrelP / portage.plugin.zsh
Created September 9, 2011 10:17
portage plugin for oh-my-zsh
if which eix > /dev/null
then
alias esearch="eix "
alias eiup="eix-update "
alias eisync="eix-sync "
alias esync="eix-sync "
else
alias esearch="emerge --search "
alias esync="emerge --sync "
fi
@mongrelP
mongrelP / gentoo_instrall_files.sh
Created September 11, 2011 13:35
Gentoo install files(amd64)
#!/bin/sh
echo "#####################"
echo "# get install files #"
echo "#####################"
gpg --keyserver subkeys.pgp.net --recv-keys 2D182910
wget -nc ftp://ftp.iij.ad.jp/pub/linux/gentoo/releases/amd64/autobuilds/current-stage3/stage3-amd64-*.tar.bz2
wget -nc ftp://ftp.iij.ad.jp/pub/linux/gentoo/releases/amd64/autobuilds/current-stage3/stage3-amd64-*.tar.bz2.*
wget -nc ftp://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.xz
wget -nc ftp://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.xz.*