Home ¦ Archives ¦ Tags ¦ Learning Progress ¦ Contact ¦ Resume

Executing Shell Commands in a Python Script

Estimated read time: 2 minutes

Even for simple tasks, it is often worth basing one’s work on existing solutions when it is an appropriate option… And such can be the case when writing Python scripts!


Binary to Decimal, Decimal to Binary Converter

Estimated read time: 2 minutes

As part of a course on the mathematics of Computer Science, I had to come up with algorithms to convert binary numbers to decimal numbers and vice versa.


Bash History Cleaner

Estimated read time: 8 minutes

If you ever wanted to automatically clean your Bash history file, here is a working solution written in Python that uses regular expressions to set any kind of pattern you might be looking for.

© Sébastien Lavoie. Built with Python using Pelican v4.7.2. Theme adapted from Giulio Fidente on GitHub. RSS feed.