Collection of codes and scripts resulting from my PhD in physics (2007-2013)