jump to navigation

大男人小料理(13) – 冬瓜排骨湯 May 29, 2007

Posted by TSAI HONG-BIN in cuisine.
2 comments

好像說,冬瓜解熱?總之…除了豬小排有點肥…整體來說滿好喝的=)

食材:

1. 豬小排
2. 冬瓜
3. 薑、鹽

步驟:

1. 豬小排用熱水燙過,去血水
2. 冬瓜去皮、去子,切大塊
3. 老薑切片
4. 全丟進鍋,電鍋蒸 20 – 25 分
5. 起鍋前加點鹽調味

冬瓜很容易爛,一爛就只能在湯裡撈渣渣…不過倒也還好,湯好喝才是重點。

create a local yum repository May 7, 2007

Posted by TSAI HONG-BIN in Linux.
add a comment

first thing first, you need to have packages in hand to become a “repository.” So, let’s start from rsync-ing the packages. Here is my daily rsync scripts:

/* start of the script */

#!/bin/sh
#mirror-yum.sh

DATE=`/bin/date +%Y-%m-%d`
OUTDIR=’/var/log’
MIRROR=’YOUR_OWN_PLACE’
OUTFILE=$OUTDIR/rsync-log-$DATE.log
archs=( i386 x86_64 )
releasevers=( 6 5 3 )

mirror_command(){

/bin/nice /usr/bin/rsync -rxvt \
–exclude=development/ \
–exclude=SRPMS/ \
–exclude=repodata/ \
–exclude=*debuginfo* \
–exclude=*i18* \
–exclude=debug/ \
–exclude=testing/ \
$2 \
$1 >> $OUTFILE

createrepo -q -c $MIRROR/cache $1 > /dev/null 2>&1

}

mirror_freshrpms(){
DEST_DIR=$MIRROR/freshrpms/$1/$2
[ -d $DEST_DIR ] || mkdir -p $DEST_DIR
mirror_command $DEST_DIR rsync://ayo.freshrpms.et/pub/freshrpms/ayo/fedora/linux/$1/$2/RPMS.freshrpms
}

mirror_core(){

DEST_DIR=$MIRROR/fedora/core/$1/$2/os/
[ -d $DEST_DIR ] || mkdir -p $DEST_DIR
mirror_command $DEST_DIR rsync://mirrors.kernel.org/fedora/core/$1/$2/os
}

mirror_updates(){

DEST_DIR=$MIRROR/fedora/core/updates/$1/$2
[ -d $DEST_DIR ] || mkdir -p $DEST_DIR
mirror_command $DEST_DIR rsync://mirrors.kernel.org/fedora/core/updates/$1/$2
}

mirror_extras(){
DEST_DIR=$MIRROR/fedora/extras/$1/$2
[ -d $DEST_DIR ] || mkdir -p $DEST_DIR
mirror_command $DEST_DIR rsync://mirrors.kernel.org/fedora/extras/$1/$2
}

for releasever in ${releasevers[@]}
do

for arch in ${archs[@]}
do

mirror_core $releasever $arch
mirror_updates $releasever $arch
mirror_extras $releasever $arch
mirror_freshrpms $releasever $arch

done

done

/* end of the script */

Well, ya, part of the script is copied from http://fedoranews.org/contributors/hal_canary/yum/.

There’re only few lines worth of mentioning. “rsync” to download the packages and “createrepo” to create repository index. Usually you’ll see online yum repository examples give a path like /var/www/html/, which somewhat implies the protocol that yum follows: HTTP.

No doubt, please check /etc/yum.repos.d/fedora-core.repo. You’ll see a line with “baseurl=” initial. Edit this line to your path. For example, if I can access my yum repository through http://192.168.0.1/yum/fedora/core/6/i386/os/, then I shall have executed `createrepo /PATH_TO_YUM_ROOT/yum/fedora/linux/core/6/i386/os/`. Point baseurl to “http://192.168.0.1/yum/fedora/core/$releasever/$arch/os/” and save, exit. Then you shall see a list of available RPMs by running `yum list.`

Except for core, there are updates, extras RPMs available (released by Fedora). If you feel like to add 3rd party packages repository like freshrpms, just follow my scripts. Don’t worry about the directory tree, you can create it whatever you like it, just make sure that it’s accessible via HTTP.

大男人小料理(12) – 清燉(?)牛肉湯(?) May 7, 2007

Posted by TSAI HONG-BIN in cuisine.
add a comment

過去煮湯用過雞肉、用過豬肉,就是還沒煮過牛肉…一來牛肉比較貴,二來潛意識覺得牛肉料理很難做。不過昨天小試身手用電鍋煮了碗牛肉湯,感覺還滿不錯的。

食材:
1. 去骨牛小排 (別問我為什麼是這個,昨天愛買只有這玩意兒在特價…比這便宜的只有牛雜,而牛雜湯我不會做…)
2. 紅蘿蔔
3. 薑、鹽

步驟:
1. 牛小排切塊,薑切大塊丟進裝熱水的鍋。
2. 放電鍋蒸個 30 分鐘
3. 撈不撈油跟肉渣隨意啦,我很懶,直接把切塊的紅蘿蔔丟下去
4. 再蒸個 1 小時…沒錯,就是那麼久…
5. 起鍋前加匙鹽

湯很甜,肉很嫰,不過也很肥 @@ 不知道是不是部位不對,重點是…沒有油煙…真是無限上綱的規矩

大男人小料理(11) – 薑燒肉片炒高麗菜 May 7, 2007

Posted by TSAI HONG-BIN in cuisine.
add a comment

誤打誤撞就是有機會撞出好吃的食譜來…

食材:
1. 豬肉片
2. 高麗菜
3. 紅蘿蔔
4. 蒜、薑、醬油

步驟:
1. 豬肉片用醬油、蒜、薑醃一下,大概十分鐘吧,太久會鹹
2. 把醃肉用的蒜和薑挑進鍋裡,爆個香
3. 怕會粘鍋就加一點水,把肉片丟進去炒
4. 八分熟時取出
5. 高麗菜切絲,紅蘿蔔切薄片,丟進剛才炒肉的鍋內
6. 菜炒軟時把肉片丟進去,再和一下就可以起鍋

豬肉片這樣子炒真是好味呀~終於有一道自信之作!重點是~~噹噹噹~~~無油!!!