Skip to content

Instantly share code, notes, and snippets.

kambara kambara

Block or report user

Report or block kambara

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View zip-dirs.sh
#!/bin/sh
cd $1
ls -F | grep / |
while read dirname
do
dirname=`echo "$dirname" | sed -e 's/\///'`
echo -----------------------
echo $dirname
@kambara
kambara / platex2pdf.sh
Created Dec 24, 2010
LaTexコンパイルスクリプト日本語用
View platex2pdf.sh
#!/bin/sh
NAME=`basename $1 .tex`
platex $NAME
jbibtex $NAME
platex $NAME
platex $NAME
dvipdfmx $NAME
@kambara
kambara / latex2pdf.sh
Created Dec 24, 2010
LaTexコンパイルスクリプト英語用
View latex2pdf.sh
#!/bin/sh
NAME=`basename $1 .tex`
latex $NAME
bibtex $NAME
latex $NAME
latex $NAME
dvipdfm $NAME
@kambara
kambara / png2eps.sh
Created Dec 24, 2010
ディレクトリ内のPNGをEPSに変換
View png2eps.sh
#!/bin/sh
for png in *.png
do
eps=`basename $png .png`.eps
echo "$png -> $eps"
convert $png $eps
done
@kambara
kambara / sensecam-mencoder.sh
Created Apr 4, 2011
ViconRevue (SenseCam) で撮った画像をAVI (MS-MPEG4 v2) に変換。要mencoder。
View sensecam-mencoder.sh
#/bin/sh
if [ $# -lt 2 ]; then
echo "Usage: $ sensecam-movie.sh /media/76EF-F73A/DATA movie.avi 24"
exit 1
fi
TMP=/tmp/sensecam-images
FPS=24
if [ $# -eq 3 ]; then
FPS=$3
@kambara
kambara / zip-dirs.sh
Created Apr 30, 2011
指定したディレクトリの中にあるディレクトリをそれぞれzip圧縮
View zip-dirs.sh
#!/bin/sh
cd $1
ls -F | grep / |
while read dirname
do
dirname=`echo "$dirname" | sed -e 's/\///'`
if [ -d tmp ]; then
rm -rf tmp/*
@kambara
kambara / gist:949705
Created Apr 30, 2011
カレントディレクトリ内のディレクトリだけを削除(ファイルは残す)
View gist:949705
find ./* -maxdepth 1 -type d -print0 | xargs -0 rm -rf
View default.pa
load-module module-waveout
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
load-module module-esound-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
@kambara
kambara / .gitignore
Created Jun 6, 2011
.gitignore for FlashBuilder Project
View .gitignore
.settings
bin-debug
@kambara
kambara / gist:1516989
Created Dec 24, 2011
JavaScript: DateTimeで 2011/1/25 10:02:30 みたいに日付表示
View gist:1516989
[[date.getYear(),
date.getMonth(),
date.getDate(),
].join('/'),
[date.getHours(),
date.getMinutes(),
date.getSeconds()
].join(':')
].join(' ');
You can’t perform that action at this time.