For more than one time I had to debug HTTP request or response headers and other details. To do that, I use two techniques, both based on cURL library. I explain them ahead. Technique #1: From the command line This is the easiest way to debug. It doesn’t require writing any actual code. Just call curl program […]
Apenas uma referência básica de declaração de arrays em shell script, no bash. Em relação ao uso, existem várias formas e possibilidades. Exemplo com strings: nomes=( “Esse” “Aquele” “Outro” ) Exemplo com inteiros: ids=( 1 2 3 4 5 6 7 )
Sometimes you need to change the access control to files matching some requirement. E.g. today I needed grant execute access to the owner of all PHP scripts running under Apache HTTP Server, in a specific directory.
UPDATE, Oct, 1st 2014 This is an old post (from 5 years ago when I writing this update) and the solution isn’t the best. So take a look at the comments – specially that one by Tinoco. The need make us study topics we think we’ll never need. Today I had to write a simple bash program […]