Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id="box">Hello</div>
<script id="jsbin-javascript">
gs -sDEVICE=tiffgray -dNOPAUSE -r300 -sOutputFile="o-%04d.tiff" ./ttnt.pdf -c quit
for i in *.tif ; do tesseract $i $i -l vie -psm 1 ; done
mkdir done
for i in *.tiff;do if [ -f $i.txt ];then mv $i.txt done/;mv $i done/;fi;done
gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -r300 -sOutputFile="o-%04d.jpeg" ./ttnt.pdf -q -c quit
for i in done/*.txt; do j="`basename -s .tiff.txt $i`.jpeg";if [ -f $j ];then rm -f $j;fi; done
for i in *.jpeg ; do tesseract $i $i -l vie; done
#go to bash
soffice.exe --headless --convert-to pdf *.ppt
@anhhh11
anhhh11 / remove all .gz file
Created December 1, 2013 04:25
remove all .gz file
sudo find . -type f -name '*.gz' | xargs rm
@anhhh11
anhhh11 / gist:6933688
Created October 11, 2013 12:14
compress website before uploading to server
tar cvf - website/ | gzip -9 - >~/website.tar.gz