Redis if Large insert and Background Save to Disk Failed

Large insert into Redis Server cause many RDB: Background Save to Disk You maybe get Error in your redis log like: SOLUTION Edit File: /etc/sysctl.confPut this at the end of line (Put in the bottom of file): Restart Sysctl to Get new CONFIG Optional, restart your redis server SOURCE https://stackoverflow.com/questions/11752544/redis-bgsave-failed-because-fork-cannot-allocate-memory

Read More Redis if Large insert and Background Save to Disk Failed

Resize images with find and ImageMagick

$ find pictures/ -type f -iname ‘*.jpg’ | xargs -I ‘{}’ convert ‘{}’ -resize 150×150 -quality 100 ‘{}’.png  Command break down find is a command that searches for files and directories, optionally matching certain criteria. pictures/ tells find where to start its search. -type f is the first search criterion: it tells find to only […]

Read More Resize images with find and ImageMagick