Bibliomarklets

Les bibliomarklets visent à faciliter l'accès aux articles scientifiques payants en passant par les proxys institutionnels (CNRS, Inserm, universités...). Ces bookmarklets permettent d'accéder à des articles scientifiques à condition que :

  • Vous ayez un compte (login & mot de passe) chez une institution qui fournit un accès à de la bibliographie. Typiquement …
more ...

Clean Gromacs backup files

Note to self.
Add the following lines to .bashrc file to clean Gromacs backups :

# clean Gromacs backups in the current directory
alias cleangromacsbackups="rm -f \#*\#"
# clean Gromacs backups recursively (for the fearless warriors)
alias cleangromacsbackups_rec="find ./ -name \#*\# | xargs -r rm"

Be careful with the second command...

more ...

Find + xargs = powerful combo

With the Unix commands find and xargs you have the ability to find any files on your hard drive while being able to manipulate them individually. Here are few examples:

find ./ -type f -name "*.php"  | xargs -r rename "s/php/html/"

Find all files (-type f) with extension .php -name …

more ...

Reduce PDF size

Here is a bash script that reduces the size of a PDF file provided as an argument.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/bash
# PP 29/08 …
more ...