My requirements for organizing a huge number of PDF e-books:- - An automated way of renaming all of these e-books to their actual titles. - Removing all duplicate files. My solution:- - git clone https://github.com/sayak-sarkar/pdf-title-rename - export PYTHONPATH=${PYTHONPATH}:$(pwd)/xmp.py - python pdf-title-rename/pdf-title-rename.py /* - ./remove_duplicate.sh
-
-
Using Vim to generate HTML output of code
This is an interesting bit that I learnt about from an email in a mailing list by James Pryor. To generate html output for code within a shell script you can use: vim myscript.sh '+syntax on' '+ set nu' '+set background=light' +TOhtml '+w myscript.html' '+qall!' If you don’t want numbers…
-
Installing Sublime Text 2 on Fedora 18 / 19 / 20
Here’s another three step guide to installing Sublime Text 2 on Fedora 19 – Schrodinger’s Cat:- Download the installation script from the following gist. https://gist.github.com/sayak-sarkar/5810101 Extract it to your home directory [or anywhere you like]. $tar -xvf gist5810101-3b0e9bb3ef5128760df9e3e06877fa4f7e5689ec.tar.gz Open your terminal (preferably as super user), navigate to your home directory…