While adding a linter to an old project, I wrote the following bash script to convert 4-space indentations to 2-space indentations. This example recursively looks for *.js files starting at the script’s location. Of course, it can be used for any type of file though by simply changing the extension.
Category Archives: Linux
I have written before about having to work in Windows 7 with Docker which only runs natively on Linux, macOS or Windows 10. The solution I have used until now has always been to run Xubuntu in VirtualBox and work directly with Docker inside the virtual machine. This has several advantages, but also many detriments … more »
I’ve recently been experimenting with various flavors of Linux partially out of curiosity, partially to improve my ability to use the OS, and partially because I am forced to use Windows at work and would rather use Linux in a virtual machine. The further I delve into the world of Linux, the more I realize … more »
Between several of my own websites as well as the websites I’ve done for other people and am hosting, the number of WordPress installations on my server has climbed exponentially. There are people that will say that’s a terrible thing and there are others that will argue it’s perfectly fine. Either way, it’s a fact … more »
This past weekend I undertook the effort to install Ubuntu 12.10 on my MacBook as a second operating system. It was quite an interesting process and I have to admit, it went much more smoothly than I expected. My MacBook is an old unibody Macbook5,1 (not a MacBook Pro) from late 2008 – the first … more »