Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/php
<?php
/**
* create a bin directory in your symfony application
* save this script into this bin directory "config_parameters
* create a token file like prod.ini
* add your token like this: __MYSQL_DB__="foobar"
* rename your parameters.yml to parameters.yml.dist
* replace your values with tokens like this
@pcahard
pcahard / strace
Created June 9, 2015 09:58
tracer les fichiers accéder par le process php
sudo strace -e open,access,write,signal -p $(pidof php)
#!/usr/bin/python
#
# this script will add / remove the ip for a list of users
# author: gazari
#
# create a file : ~/.glftpd/user-ip-config.yml
#
# enter user/host like this:
#user:
# - host1