- もやし 1袋
- 味の素・ほんだし 1袋
- ごま油 適量
- ラー油 適量
- 一味唐辛子 適量
- にんにく 適量
- 醤油 少々
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
ffmpeg -ss 20 -i ./video.flv -vframes 1 -f image2 ./out.jpg 0.06s user 0.04s system 52% cpu 0.192 total | |
ffmpeg -i ./video.flv -ss 20 -vframes 1 -f image2 ./out.jpg 0.37s user 0.41s system 87% cpu 0.883 total |
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
lsof -P -i -n | cut -f 1 -d " " | uniq |
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
tail -f /Applications/tiarra/log/\#Twitter@tig/`ls -l /Applications/tiarra/log/\#Twitter@tig | tail -n 1 | awk '{ print $9 }'` |
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
-- AppleScript | |
-- iTunesSleepTimer | |
display dialog "Stop iTunes after input minutes:" default answer "30" | |
set res to result | |
if button returned of res is "OK" then | |
set sec to (text returned of res) * 60 | |
set curDate to current date | |
set time of curDate to (time of curDate) + sec | |
display dialog "iTunes will stop at " & time string of curDate buttons {"Stop Now"} giving up after sec |
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
#!/usr/local/bin/ruby | |
# | |
require 'sendgmail.rb' | |
require 'yaml' | |
@LOG_DIR = "/path/to/log" | |
@CHANNEL = %w{#xxxxx@freenode #xxxxx@twitter} | |
@FILE_NAME = Time.now.strftime("%Y.%m.%d.txt") | |
@KEYWORDS = "key1|key2|key3" | |
replys = Array.new |
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
■材料 | |
ベース油(食用油を模索中、ごま油がベター):欲しい量 | |
白ネギ(の青い部分):適量 | |
ニンニク:適量 | |
唐辛子:適量 | |
容器:ベース油が入る容積をもった容器 | |
■作成方法 | |
1.ニンニクと白ネギをみじん切りにする。 | |
2.ベース油を鍋に入れる。 |
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 | |
for file in $* | |
do | |
if [ -f $file ]; then | |
nkf --utf8 $file > tmpfile | |
mv tmpfile $file | |
fi | |
done | |
exit |
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 | |
rm -rf `find ~/ -name "*\~"` |
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
# ランダムな文字列を生成する。 | |
# 引数 _length_ を指定すると生成桁数を指定することができます(デフォルト 8 桁)。 | |
def getRandomString (length = 8) | |
if length == 0 | |
length = 8 | |
end | |
source=("a".."z").to_a + ("A".."Z").to_a + (0..9).to_a + ["_","-","."] | |
key="" | |
length.times{ key+= source[rand(source.size)].to_s } | |
return key |