This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
defaults read NSGlobalDomain KeyRepeat | |
defaults read NSGlobalDomain InitialKeyRepeat | |
defaults write NSGlobalDomain KeyRepeat -int 1 | |
defaults write NSGlobalDomain InitialKeyRepeat -int 10 | |
defaults read NSGlobalDomain KeyRepeat | |
defaults read NSGlobalDomain InitialKeyRepeat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- fallback_fonts.xml 2012-01-03 01:36:16.000000000 +0900 | |
+++ fallback_fonts.fixed.xml 2011-12-26 01:19:01.000000000 +0900 | |
@@ -71,6 +71,11 @@ | |
</family> | |
<family> | |
<fileset> | |
+ <file>HiraKakuPro-W3.otf</file> | |
+ </fileset> | |
+ </family> | |
+ <family> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
base_dir="$HOME/local" | |
src_dir="${base_dir}/src" | |
mkdir -p "$src_dir" | |
# Install libdvdcss | |
pushd "$src_dir" | |
svn co svn://svn.videolan.org/libdvdcss/trunk libdvdcss | |
cd libdvdcss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dvd_device="/PATH/TO/VIDEO_TS" | |
# exec mplayer -dvd-device "$dvd_device" dvd:// -identify to acquire chapters and aid. | |
chapters="21" | |
aid="160" | |
title="1" | |
for chapter in `seq 1 $chapters`; do | |
wav=`printf %02d.wav $chapter` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://sakito.jp/emacs/emacs24.html | |
wget 'ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-24.1-rc.tar.gz' | |
tar zxvf emacs-24.1-rc.tar.gz | |
mv emacs-24.1 emacs-24.1-rc | |
pushd emacs-24.1-rc | |
./configure --with-ns --without-x | |
make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install APEL | |
# http://git.chise.org/elisp/apel/ | |
wget 'http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/apel-10.8.tar.gz' | |
tar zxvf apel-10.8.tar.gz | |
pushd apel-10.8 | |
export EMACS="$HOME/Applications/Emacs.app/Contents/MacOS/Emacs" | |
make install LISPDIR=~/.emacs.d/lisp VERSION_SPECIFIC_LISPDIR=~/.emacs.d/lisp INFODIR=~/.emacs.d/info | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://btrfs.wiki.kernel.org/index.php/Getting_started | |
https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices | |
% echo 'deb http://backports.debian.org/debian-backports squeeze-backports main' > /etc/apt/sources.list.d/backports.list | |
% sudo apt-get update | |
% sudo apt-get -t squeeze-backports install linux-image-2.6-amd64 | |
% sudo apt-get install btrfs-tools | |
% sudo /sbin/shurdown -r now | |
% sudo mkfs.btrfs -m raid0 /dev/sdb /dev/sdc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
virt-install \ | |
--connect="qemu:///system" \ | |
--name="lenny-i386" \ | |
--ram=4096 \ | |
--cdrom="/path/to/debian-5010-i386-netinst.iso" \ | |
--disk path=/var/lib/libvirt/images/lenny-i386.img,size=32 \ | |
--network bridge=br0,model=virtio \ | |
--vnc \ | |
--vnclisten=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
virt-install \ | |
--connect="qemu:///system" \ | |
--name="squeeze-amd64" \ | |
--ram=8192 \ | |
--location="http://ftp.jp.debian.org/debian/dists/squeeze/main/installer-amd64/" \ | |
--disk path=/var/lib/libvirt/images/squeeze-amd64.img,size=32 \ | |
--network bridge=br0,model=virtio \ | |
--vnc \ | |
--vnclisten=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
size=9348 | |
count=10 | |
tmpname="500mb.tiff" | |
for i in `jot - 1 $count`; do | |
convert -size ${size}x${size} xc: +noise Random $tmpname | |
ofname=`md5 -q $tmpname`'.tiff' | |
mv $tmpname $ofname | |
done |
OlderNewer