nixhat


Even after increasing your php memory, if you are still getting “unable to allocate memory for pill in PHP” error, then should be related to APC. For the people having this problem, please specify you .ini settings. Specifically your apc.mmap_file_mask setting. For file-backed mmap, it should be set to something […]

“Unable to allocate memory for pool” in PHP?


To free pagecache: # echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: # echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: echo 3 > /proc/sys/vm/drop_caches

Drop caches in Linux


You could use the special \L combonation to indicate that the following character must be made lower case: :%s/[A-Z]/\L&/g Here you match any character in [A-Z]. The replacement string is then \L followed by &, which is short for what was matched in the left  hand side.

vim – switch all to lowercase