Telegram self-signed certificate on CentOS + Nginx

Simply create cert via Openssl as described here:

after that, configure the nginx :

jump to step 2…

good luck!

Buffering WordPress rendered page

if( current_user_can('manage_options') )
add_action('template_redirect', 'YOURPLUGIN_buffer_start', 0);

function YOURPLUGIN_buffer_start() {
add_action('shutdown', 'YOURPLUGIN_buffer_stop', PHP_INT_MAX);
function YOURPLUGIN_buffer_stop() {
function YOURPLUGIN_modify_content($content) {

$dom = new DomDocument();
foreach ($dom->getElementsByTagName('link') as $node)
if($node->hasAttribute('rel') && $node->getAttribute('rel')=='stylesheet' )


//modify $content
return serialize($styles).$content;

PHP.ini Common Settings

php_value max_input_vars 4500

php_value upload_max_filesize 40M
ini_set(‘post_max_size’, ’64M’);


define('WP_MEMORY_LIMIT', '64M');


ini_set(‘max_execution_time’, 300);







simplest way to install FFmpeg on CentOS

After heading to the official ffmpeg download page, click the link under Linux Static Builds.

Click the appropriate (32- or 64-bit) and desired (snapshot or numbered) release to download.

If the libav version of ffmpeg was installed, remove it. The two can not reside on the same machine.

Extract the files (and two directories) as follows:

  • For single-user systems: to $HOME/bin
  • For multi-user setups: to /usr/local/bin

Static build install is done and ffmpeg is ready to use.

% wget
% tar xJvf ffmpeg-git-64bit-static.tar.xz
% cd ffmpeg-git-20150427-32bit-static
% ./ffmpeg

maybe useful!

yum install xz

Best WordPress Frameworks

Plenty of WordPress frameworks are available on the internet. Most of them built for WordPress theme development. There are frameworks for plugins. Options panel is also available. As WordPress frameworks built for faster workflow, most of the developers depending on frameworks. WordPress frameworks help to standardise development and increases flexibility.

More Details: