toggle menu

Scripts & Macros Nowadays, all operating systems and many programs allow at least a basic type of scripting; so, scripts are useful and ready-made scripts are even more ;-)


As any linux user knowns, the shell is always the most used program. And the BASH shell is one of the most customizable program: the .bashrc script is executed each time a new BASH session begins.

  1. .bashrc: the Ubuntu default .bashrc plus some aliases for my most used commands for directory navigation, version control systems, etc

  2. .gdbinit: when debugging it's useful to have GDB start with all your macros already loaded; in my case I often use wchar.gdb and cls.gdb.

Make sure to checkout also my programming page which contains links to several of Linux projects!


  1. processes one or more Skype main.db files merging chat messages, removing duplicates, filtering based on the chat partecipants, splitting chat sessions under reasonable criteria (!); finally formats the result in a nice readable HTML page!

  2. keeps track of your PDF library and generates a list of the files it contains, synchronize two or more ebook "repositories", validates the book filenames and more!

  3. performs automated substitutions in the given BibTex file to comply with IEEE Citation Style guide


  1. a simple modification of Julien Vitard's extension "Latex formula" for Inkscape. This mod adds a "formula display size factor" which can be used to ensure that, regardless of the size of the paper selected for the open document in Inkscape, the Latex formulas will always be rendered with the same font/symbol size.

Cadsoft EAGLE

  1. this ZIP contains the lbr-contents-dump.ulp script which allows dumping all the contents of a library as SCR files and the lbr-merge.ulp script which allows to merge two libraries into one (I use these script to keep in sync different versions of the same library).

My Microsoft VisualC++© macros

  1. ReIndentAll: applies the Edit->Advanced->Tabify + Edit->Advanced->Format on all open docs starting from line 24; close all windows using Window->Close All then open using SHIFT key all the files you want. Then, run this macro.

  2. RemoveEmptyLines: Removes all the empty lines from the selected portion of the document.

  3. MakeCodeNicer: Reformats the source code to look nicer, the way I like it.

  4. RemoveTrailingSpaces: Removes the trailing spaces from the selected lines.

  5. RemoveCInlinedComments: Removes the C comments replacing them with C++ comments

  6. MakeUnicodeCompatible: Smartly adds the wxT() macro around all literals to make them Unicode compatibles.

My Microsoft Word© macros

  1. DeleteHyperlinks: Removes all the hyperlinks from the selected portion of document.

  2. DeleteEmptyLines: Just does what the name says :)