Leeladharan Achar - alias - leelu ~ blogging...hola mi amigos.. The Blog

Leeladharan Achar - leelu Blog. Hola mi amigos!

openssl error while installing flask-scrypt on mac OS

To fix openssl error while installing flask-scrypt or scrypt extension. Execute below steps

(venv)$export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS" (venv)$export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS" (venv)$pip install scrypt 
More ...

running multiple sql queries in jmeter

Below are the steps to be followed to run multiple queries in jmeter

I did some google search and here were the pages where i landed to see how it's done


But, actual steps on how to do it was not mentioned. So below are the steps to do the same.

First have all sql queries to be executed ...
More ...

Handy Commands

Find in all files recursively for a specific string

 find ./ -type f -name "*.*" -exec grep -inH "searchstring" {} \; 

to search in all specific file extensions recursively

 find ./ -type f -name "*.php" -exec grep -inH "searchstring" {} \; 

In a specific directory search for specific file extension and count number of lines in ...

More ...

Compiling PHP5.x on CentOS 7

Download PHP packages

Go to http://php.net site Downloads section and select the PHP-6.X.X version that you want to compile (5.6.12 at time of writing this tutorial), select your nearest mirror and download it then upload to your server using rsync or scp. Another simple solution is typing in your console from your server

# wget -O php-5.6.33.tar.gz http://in1.php.net/get/php-5.6.33.tar.gz/from/this/mirror 

Unpacking ...

More ...

Processing Nginx Logs

Below are list of few commands that can be used in linux to process nginx logs

Processing log file group by HTTP Status Code

awk '{print $11}' access.log | sort | uniq -c | sort -rn 

The $11 is the field in log line, where each field is delimited by a delimiter like (space). In my log files $11 ...

More ...