Numerical tools
Below you can find some of the programs that I have written to obtain numerical demonstrations in some of my papers. Feel free to contact me if you have any question.
Rockingblock integrator.
This program integrates the rocking block equations. These equations
can be easily replaced to integrate any other piecewisesmooth system
of any dimension exhibiting crossing with a switching manifold.
The program uses a RungeKuttaFehlberg 78 (variable step) method to integrate the equations; when a crossing occurs, it performs a Newton method to accurately compute the crossing.  Subharmonic Melnikov method for piecewisesmooth systems . This is the collection of C and bash routines used to compute the numerical demonstrations of theory developed in the article The Melnikov method and subharmonic orbits in a piecewisesmooth system
 Scattering map. This is a collection of C++ and bash routines to compute heteroclinic connections and the scattering map for the two coupled rocking blocks. They follow the method described in paper The scattering map in two coupled piecewisesmooth systems, with numerical application to rocking blocks.

Parameterization
method for Normally Hyperbolic Manifolds. This is a general purpose
collection of tools aiming to compute Normally Hyperbolic Manfiold (NHIMs) and
their associated Stable and Unstable manifolds by beams of the socalled
Parameterization method. This software is the one used to obtain the numerical
results shown in the paper Normally
Hyperbolic Manifolds and Parameterization method in coupled energy harvesting
piezoelectric oscillators. See the manifolds in the animation below:
Linux scripts
Below you can find some scripts that I have been using to do different things. vpn_reactivate.sh is a bash script that I use to check whether a vpn connection is active, reconnect to it if it is lost and stop and restart transmission torrent client accordingly. You can easily modify it, for instance, to kill some other program if your vpn connection is lost.
 switch_wm.sh is a script
designed to switch between xfwm4 (xfce windows manager) and compiz windows
manager and restore the windows in the working spaces where they were. I use
to switch between these two windows managers in my laptop depending whether I
am using the battery or it is docked and lying on the table with an external
monitor plugged in. Unfortunately, if you type
F2 and execute "compiz replace" (or xfwm4 replace), all windows are moved to the first working space, which is very annoying. This script solves this. You can easily modify it to use metacity instead of xfwm4.  download.sh is a very silly script to make plowdown download links from a file using a premium account without waiting 30 seconds between downloads.