Useful tricks for code and scripts