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
http://q.hatena.ne.jp/1316511935 | |
https://chrome.google.com/webstore/detail/nolijncfnkgaikbjbdaogikpmpbdcdef | |
2chfinder.com | |
a.hatena.ne.jp | |
anond.hatelabo.jp | |
ceron.jp | |
clip.livedoor.com | |
friendfeed.com |
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 | |
ls "$@" | while read f; do | |
BEFORE_NAME=$f | |
AFTER_NAME=$(ls $f | awk 'BEGIN{FS="_"}{print "$0" $1 "." $2 "." $3}' | awk 'BEGIN{FS="."}{printf("HOGE.%s.%05d.jpg\n",$2,$3)}') | |
mv $BEFORE_NAME $AFTER_NAME | |
done |
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 | |
mogrify -channel Red -separate -modulate 110 +contrast "$@" |
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 | |
export MAGICK_TEMPORARY_PATH=$HOME | |
find "$@" -type d | while read f; do | |
OUTDIR=$f | |
rm -f "$(pwd)"/"${OUTDIR}".pdf | |
echo "converting $f " | |
(jpg2pdf.pl \ |
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/bin/perl | |
# ****************************************************** | |
# Software name :convert jpeg to pdf (複数のjpeg ファイルをpdfに変換) | |
# jpg2pdf.pl | |
# version 0.1 (2010/December/07) | |
# version 0.2 (2012/March/10) | |
# version 0.3 (2012/October/09) | |
# | |
# Copyright (C) 2010-2012, INOUE Hirokazu |
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 | |
ls *.pdf \ | |
| grep -v '^zip2pdf\.' \ | |
| sort \ | |
| perl -wnl -aF'\.' -e 'print(pop(@F) . "|" . join(".", @F) . "|" . "19990104." . sprintf("%06d", $.) )' \ | |
| awk 'BEGIN{FS="|"}{print "mv \"" $2 "." $1 "\" zip2pdf." $3 "." $1}' \ | |
> hoge.txt |
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 | |
ls "$@" | while read f; do | |
echo "converting $f " | |
sleep 1 | |
OUTDIR=zip2pdf.$(date +%Y%m%d.%H%M%S) | |
mkdir "${OUTDIR}" | |
unzip -q -o -j "$f" -d "${OUTDIR}" | |
rm -f "${OUTDIR}".pdf | |
dir2pdf.sh "${OUTDIR}" |
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
ls \ | |
| awk '{printf("mv \"%s\" 20121018.%06d\n", $0 , NR + 1000)}' \ | |
| sh |
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 | |
# vboxcontrol Startup script for VirtualBox Virtual Machines | |
# | |
# chkconfig: 345 99 01 | |
# description: Manages VirtualBox VMs | |
# processname: vboxcontrol | |
# | |
# pidfile: /var/run/vboxcontrol/vboxcontrol.pid | |
# | |
### BEGIN INIT INFO |
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 | |
ls "$@" | while read f; do | |
DIRNAME=$(basename "$f" ".pdf") | |
echo "converting $f to $DIRNAME" | |
rm -rf "$DIRNAME" | |
mkdir "$DIRNAME" | |
pdfimages -j "$f" "$DIRNAME"/"DIRNAME" | |
done |
OlderNewer