·

terminal

Find translateable strings in Magento PHP Files

So here’s a nice little one-liner you can use to find strings that require translation in your Magento projects. Just go to the folder of your theme or extension and execute the following command: What it does, it looks for occurances of __(‘ anything ‘)  in your code and creates a typical Magento CSV-translation string read further ...

Mass convert m4a files to mp3 on OSX

Let me start by saying that I recently switched from an iPhone to Android. When I wanted to put my music on my new phone I discovered that my new phones’ music player didn’t recognise the m4a  in which many of my audio files were encoded. So I needed to find a way to convert my read further ...

Mass rename files in Unix with iteration index

I already wrote a post a while ago about how to mass rename files in Unix. But today I was faced with the challenge to do the same trick, except rename each file to an increased number. I had a whole folder with all kind of PNG images, and I had to rename them to read further ...

How to convert SVG to PNG on OSX

Here’s a small tip: If you want to convert SVG to PNG on OSX there are several things you could try. One of those is a tiny ‘secret’ app build natively into OSX: qlmanage . This app is used by the system to generate (PNG) thumbnails of your files, but can also be used on the read further ...

How to mass rename files in Unix

Here’s a little trick when you need to mass rename files in Unix: for example, if you have a bunch of files where you need to replace the word “foo” with “bar” you can do as such:  read further ...

Convert a file encoding to UTF-8 from a shell script

Today I had the situation where I had to convert a bunch of files to the UTF-8 encoding. All source files where in different encoding but they had to be saved in UTF-8 in order for the application to work properly. To do this I created a simple shell script.read further ...

Stress Test your site with Siege

When your developing your site on your local environment, it’s easy to get a feel of how fast and snappy it is. However, when your site goes public into the real world, problems can arise that you didn’t have before. These problems often are related to the performance of your site and the underlying course read further ...

7 handy shortcuts for the command-line

I use the command-line a lot. Except from the weekends I’m working on the command-line on a daily base. Today I dove into some shortcuts for the command-line and I summed up 7 of the most handy shortcuts here:read further ...

PHP CLI Progress Logger

As some of you might already know, I make great use of the Command Line Interface (CLI) of PHP for tasks or tools that need to be run incidentally or periodically. For tasks that have iterations in them (like while  or foreach -loops) I like to have a visual feedback in my terminal of the progress. For read further ...

1 2