FFMPEG Toolkit

之前开源的安装脚本

FFMPEGToolkit is a free and 100% open source software completely written in bash shell script.
The purpose of this script is to build a video streaming platform in your Gnu/Linux server (CentOS 7.*).

So you can start video streaming websites and avoid the cost of installations. This script not only install ffmpeg but also all its friends packages. You can chose this script for building platform for most of the youtube clone softwares like clip-shre, sharemixer,shareigniter,etc,.

特地建立了一个官方网站
https://www.ffmpegtoolkit.com/

最近通过搜索访问本文章的关键词:

semget: No space left on device N次遇到这个问题

This relates to semaphores on your system (you’ve run out). Run the following to clear them out:
ipcs | grep apache | awk ‘{print $2}’ > sem.txt
for i in cat sem.txt; do { ipcrm -s $i; }; done;

If this becomes a common occurance, then you may need to change your ipcs semaphore limits.
Set the following in your /etc/sysctl.conf:
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024

and reboot your system to load in those values. 继续阅读semget: No space left on device N次遇到这个问题

最近通过搜索访问本文章的关键词:

NGINX配置文件变更监控 重新载入nginx reload生效 基于MD5的

NGINX配置文件变更监控 重新载入nginx reload生效 基于MD5的

这个是基于MD5的
不依赖其他
继续阅读NGINX配置文件变更监控 重新载入nginx reload生效 基于MD5的

PHP加密 JS解密

输出

This is some sample text.

最近通过搜索访问本文章的关键词:

google 真是到处限制啊

www.BOIP.net 的IP信息图片调用
好好的莫名其妙输出不了图片,debug了下 发现变量timezoneID没值了

因为取时区 所以使用了Google的api
结果发现 这个api是和map地图绑定的

一天限制2500/次…..

改为写死UTC 就OK了

真是各种坑

最近通过搜索访问本文章的关键词:

DirectAdmin全新SKin/皮肤/风格的消息

对DA的这个新模板挺敢兴趣的
很好看 而且支持移动设备
毕竟老的那套风格 实在太妈的老了啊 Web1.0时代的产物啊

官方的进度
https://www.directadmin.com/evolution.php

Over the past year, we’ve been working hard to create a new look to DirectAdmin. We’ve called this new skin Evolution.
This new skin will have a similar feel to our new directadmin.com website.

We’re very close to releasing a public demo, so you can keep an eye on this page, and we’ll update it once we have more information.

Progress:90%
Todo:
Make skin responsive (css resize for tablets)
FileManager
Admin Backup/Transfer
Translations (to be done during alpha testing)

After we get some feedback about the demo and finish up a few lose ends, we’ll release an Alpha version for general testing. After that, a beta, then the full release. For each step, if anyone is testing on their system, be sure to grab the latest pre-release binaries, as major internal changes have been made in DirectAdmin to accomodate the new skin.

意思是
全新的进化SKIN, 很快和大家见面
已经完成90%的进度了
现在在干的事

    让CSS风格匹配平板设备
    文件管理器
    管理备份和传输功能
    语言翻译

最近通过搜索访问本文章的关键词:

AZURE Linux ROOT 权限 开启和设置

官方文档
https://azure.microsoft.com/en-gb/documentation/articles/virtual-machines-linux-use-root-privileges/

教程
How to enable root access on Microsoft Azure Cloud.

1. Login via ssh using your sudo user
2. Now login as root user

3. check if root access is set (LOCK means that root access is disabled)

4. enable root access (as root user enter command passwd)

now enter your password and root access is enabled, you can check this by using command “grep root /etc/shadow”

Logstash 2.3.0 性能提升 79%

https://www.elastic.co/blog/logstash-2-3-0-and-2-2-3-released

Logstash 2.3.0 has been released today, packed with extremely useful new features, an awesome performance boost and a few bug fixes. You can read the detailed release notes here, or jump directly to our downloads page if you can’t wait to test drive this release! Additionally, we’ve released an update to the 2.2.x series, with a bunch of important bugs packaged in 2.2.3. You can read the changelog for 2.2.3 here.

最主要改动了动态配置文件载入 reload
不需要kill在start了

Per_comparision_image.pngPerf_comparision_2.3_2.2.png

Note: All benchmark

[FFMPEG] take multiple screenshots to an image

To make multiple screenshots and place them into a single image file (creating tiles), you can use FFmpeg’s tile video filter, like this:

ffmpeg -ss 00:00:10 -i movie.avi -vf 'select=not(mod(n\,1000)),scale=320:240,tile=2x3' out.png

That will seek 10 seconds into the movie, select every 1000th frame, scale it to 320×240 pixels and create 2×3 tiles in the output image out.png, which will look like this:

ffmpeg_tile

PHP 7.0 正式发布了

Today, we’re pleased to announce that PHP 7.0 – the fastest and most efficient PHP ever – is officially released!

PHP 7.0 brings you unprecedented levels of real-world performance and throughput by utilizing the new and advanced Zend Engine 3.0, designed and refactored for speed and reduced memory consumption. This translates to real-world benefits: greatly decreased response times, superior user experiences, and the ability to serve more users with fewer servers to maximize the power of your PHP 7.0 deployment.

The explosive performance improvements of PHP 7.0 range between 50% and 200% on real-world apps – without changing a single line of code:

不改代码性能提升老多了
ccc

PHP 7.0.0 comes with a new version of the Zend Engine, numerous improvements and new features such as

Improved performance: PHP 7 is up to twice as fast as PHP 5.6
Significantly reduced memory usage
Abstract Syntax Tree
Consistent 64-bit support
Improved Exception hierarchy
Many fatal errors converted to Exceptions
Secure random number generator
Removed old and unsupported SAPIs and extensions
The null coalescing operator (??)
Return and Scalar Type Declarations
Anonymous Classes
Zero cost asserts

Link
cd /opt
wget -c http://php.net/get/php-7.0.0.tar.gz/from/a/mirror
tar xfz php*.tar.gz
cd php*
configure 加一堆参数就可以了

how to detect domain in chinese viewer status

how to detect domain in chinese viewer status
不能写G F W 相关的 怕域名被墙

This code use for check domain in china network status
1. must be upload china servers or web hosting
2. network request must from china send

Test images
checkdomains
继续阅读how to detect domain in chinese viewer status