Spreadsheet calendar
A classic calendar made with OpenOffice Calc:
The cells with orange background are Italian holidays, and the background has been added manually (no formula); Easter is missing because its calculation would require a custom formula.


Posted by: Z24 | Wed, May 04 2011 |
Category: /programming |
Permanent link |
home
Tagged as: programming, spreadsheet
How to rename multiple files from bash
Rename all *html files to *test:
for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done
Bash for:
for var in some-list ; do command ; done


Posted by: Z24 | Wed, May 04 2011 |
Category: /linux |
Permanent link |
home
Tagged as: command-line, linux, programming, script, shell
Execute a command at shutdown
To dismount TrueCrypt volumes at shutdown and reboot time, I created a script, put it in/etc/init.d/
and symlinked it into the needed /etc/rc?.d/
directories using update-rc.d
.
Here is the detail:


Posted by: Z24 | Wed, May 04 2011 |
Category: /linux |
Permanent link |
home
Tagged as: command-line, linux, programming, script, shell


Posted by: z24 | Mon, Feb 09 2009 |
Category: /hardware |
Permanent link |
home
Tagged as: cooling, fan, fan controller, hardware, silencing
Regular expressions pattern options
In regular expressions there are some constructs that influence the way a pattern is matched:
- Non-greedy
?
- Non-capturing
(?:pattern)
- Positive lookahead
(?=pattern)
- Negative lookahead
(?!pattern)
- Positive lookbehind
(?<=pattern)
- Negative lookbehind
(?<!pattern)
- Testing regular expressions


Posted by: Z24 | Sun, Dec 23 2007 |
Category: /programming |
Permanent link |
home
Tagged as: perl, programming, regex, visual basic