Skip to main content

linux

Update php cli version

I've recently updated my php and found, that the settings for apache did not match the php cli version. I had to set the cli version with the following procedure:

Negate find parameters on linux bash

find -maxdepth 1 -type d -not -name "*hide*"

= Show all directories directly located in the current directory which do not have the word 'hide' in their name.

Harddisk speed

For some years I had problems when updating or installing a site with composer from my vagrant box.

Combine PDF on console

Put all pdf's you want to combine in a directory. Name them in the order, you want to combine them.

qpdf --empty --pages *.pdf -- NameOfMergedFile.pdf

History search

Easy way to repeat often used commands on the linux console ... add history search backwards to .inputrc in your home directory:

cd ~

vim .inputrc