Tech

Posts tagged with

Minify files

I use yui-compressor to minify my files. It’s so easy. In Ubuntu (15.04) it’s available via apt-get. To install it (on Ubuntu) type the following in your terminal window apt-get install yui-compressor The command structure to run it is yui-compressor SOURCE > TARGET e.g. yui-compressor 


Read more →

Welcome

Welcome

These posts sit at the intersection of three things I keep returning to: leadership, technology, and the open road. Over a career that took me from boardrooms to development environments — across oil & gas, banking, insurance, and beyond — I have come to realise that the same qualities that make 


Read more →

Reduce the size of a pdf

A somewhat weird but simple way to reduce a pdf is to concert it to a ps and back e.g. pdf2ps input.pdf output.ps && ps2pdf output.ps output.pdf

Read more →

Prepend and append example of a redirect file using awk and sed

I needed to generate a .htaccess redirect file where each line has a simple command redirect 301 old-file new-file The file called crawl-error.txt with all the required urls that needed a redirect was quite long so I did the following in no time. First ensure that the file is really a proper text 


Read more →

Two git repositories on the same server for a single user

I discovered that it is not possible, at least not for the same user, to have two git projects in the same account as github uses the ssh key to identify your repository. Once I realized that this was the problem, the quick fix was to clone the repository in another account. I created a new user and 


Read more →