Skip to content

Instantly share code, notes, and snippets.

View rust's full-sized avatar
🏠
Working from home

Shinichiro OGAWA rust

🏠
Working from home
View GitHub Profile
<% if var -%>
ok
<% else -%>
ng
<% end -%>
end
@rust
rust / p.rb
Created December 2, 2009 01:59
require 'rubygems'
module Kernel
alias :default_p :p
def p(*args, &block)
case RUBY_PLATFORM
when /linux/
require 'n'
n(*args, &block)
### Commented entries have reasonable defaults.
### Uncomment to edit them.
Section: misc
Priority: optional
Standards-Version: 3.6.2
Package: appserver-setup
Version: 1.0
Maintainer: Shin-ichiro OGAWA <rust.stnard@gmail.com>
# Pre-Depends: <comma-separated list of packages>
d-i partman-auto/expert_recipe string \
boot-root :: \
50 100000 100 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
. \
100 10000 5000 ext3 \
method{ format } format{ } \
### Priority
debconf debconf/priority select critical
#### Contents of the preconfiguration file (for lenny)
### Localization
# Locale sets language and country.
d-i debian-installer/locale string ja_JP.UTF-8
# Keyboard selection.
#d-i console-tools/archs select at
### Commented entries have reasonable defaults.
### Uncomment to edit them.
Section: misc
Priority: optional
Standards-Version: 3.6.2
Package: dbserver-setup
Version: 1.0
Maintainer: Shin-ichiro OGAWA <rust.stnard@gmail.com>
# Pre-Depends: <comma-separated list of packages>
### Priority
debconf debconf/priority select critical
#### Contents of the preconfiguration file (for lenny)
### Localization
# Locale sets language and country.
d-i debian-installer/locale string ja_JP.UTF-8
# Keyboard selection.
#d-i console-tools/archs select at
Dir {
ArchiveDir "/home/ogawa/work";
OverrideDir "indices";
CacheDir "/tmp";
};
TreeDefault {
Directory "pool/";
};
Dir {
ArchiveDir "/home/ogawa/work";
OverrideDir "indices";
CacheDir "/tmp";
};
TreeDefault {
Directory "pool/";
};
APT {
FTPArchive {
Release {
Origin "debian-cd";
Label "mylenny";
Suite "testing";
Version "0.1";
Codename "lenny";
Architectures "i386";
Components "main contrib";