View zip-dirs.sh
#!/bin/sh | |
cd $1 | |
ls -F | grep / | | |
while read dirname | |
do | |
dirname=`echo "$dirname" | sed -e 's/\///'` | |
echo ----------------------- | |
echo $dirname |
View platex2pdf.sh
#!/bin/sh | |
NAME=`basename $1 .tex` | |
platex $NAME | |
jbibtex $NAME | |
platex $NAME | |
platex $NAME | |
dvipdfmx $NAME |
View latex2pdf.sh
#!/bin/sh | |
NAME=`basename $1 .tex` | |
latex $NAME | |
bibtex $NAME | |
latex $NAME | |
latex $NAME | |
dvipdfm $NAME |
View png2eps.sh
#!/bin/sh | |
for png in *.png | |
do | |
eps=`basename $png .png`.eps | |
echo "$png -> $eps" | |
convert $png $eps | |
done |
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 |
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/* |
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 |
View .gitignore
.settings | |
bin-debug |
View gist:1516989
[[date.getYear(), | |
date.getMonth(), | |
date.getDate(), | |
].join('/'), | |
[date.getHours(), | |
date.getMinutes(), | |
date.getSeconds() | |
].join(':') | |
].join(' '); |
OlderNewer