Etienne Marais

Etienne Marais

How to clean your Ubuntu instance

in Bash

Keep the APT cache clean Remove old kernels safely Clean out /tmp Rotate log files Not every server is a docker provisioned fully CI/CD workflow. Sometimes you want to spin up something small for a side project or blog. Sometimes it's a dev server in the office or a small cloud ...

How to list all installed packages in size order on Ubuntu

in Bash

For someone to go and do some cleanup on their side project VM it might feel like a big task to keep the box clean, up to date and running smoothly. To see a list of packages that are installed in your Ubuntu VM, run: That does not show you the size of each package yet.

How to build a hexagon using Vue and SVG

in Vuejs

Lately I have been more interested in the reactivity of VueJS to generate svg shapes as components. Components offer a fantastic way to re-use code and also share functionality between apps and/or services. I found a nice little utility made by Brenna ...

Open connections to a server using netstat and watch

in Bash

Sometimes you want to see how many open or active connections are currently running on a server. netstat watch If you want to have a watcher setup that refreshes every second, run the following in a terminal window:

Creating Custom Laravel/Lumen validators

in Laravel

I guess this has been written about a couple of times already but I haven’t really found anything that puts all the pieces together nicely. This is an article about adding a custom validator to Lumen(v5.2) specifically but can be ported to Laravel as well. After taking a read thr ...

Nyancat PHPUnit results

in Testing

PHPUnit has been a handy tool in the developer tool chain for test driven development and code design. There are some pain points that breaks development flow. The insane stack traces when you are expecting an exception and the long scroll when errors occur is enough to demotivat ...