Monthly Archives: March 2015

change the execution time for php-fpm and nginx for long running scripts

in the php pool config set:

php_admin_value[max_execution_time] = 600;
location ~ \.php$ {
	include /etc/nginx/fastcgi_params;
        fastcgi_pass  unix:/var/run/php5-fpm.sock;
	fastcgi_read_timeout 600; 
}

Generate ssh key

ssh-keygen -b 4096 -t rsa <-C "your_email@example.com">

generate doctrine modules + setters and getters

vendor/doctrine/doctrine-module/bin/doctrine-module orm:convert-mapping annotation module/Application/src/ --namespace="Application\\Entity\\" --from-database --force
vendor/doctrine/doctrine-module/bin/doctrine-module orm:generate-entities --update-entities="true" --generate-methods="true" module/Application/src/

git empty folder

# Ignore everything in this directory
*
# Except this file
!.gitignore

find large files

du -a /var | sort -n -r | head -n 10

change or add passphrase to key

ssh-keygen -f keyfile -p