Install SSL Letsencrypt on Wowza Server HLS Stream
I am running webserver / domain on HTTPS and Wowza Media Streaming Server on HTTP (Non-SSL) so I am getting Error for LIVE / VOD HLS stream Files “Cannot load…
Convert AWS DynamoDB Table JSON to Simple PHP Array or JSON
Amazon DynamoDB support these datatype for data – String – Binary – Number – StringSet – NumberSet – BinarySet – Map – List – Boolean – Null AWS provides command…
Install SSH2 Extension for PHP 7 on CentOS 7
Install gcc, php71w-devel, libssh2 and libssh2-devel on CentOS 7 # yum install gcc php71w-devel libssh2 libssh2-devel Download php7 pecl-networking-ssh2 # wget https://github.com/Sean-Der/pecl-networking-ssh2/archive/php7.zip Unzip and Change folder # unzip php7.zip #…
Attach And Mount EBS Volume To EC2 Linux Instance
AWS allows to create / attach / mount new EBS volumes to instances for extra storage. Use lsblk command to view available disk devices and other mount points. # df…
Install Ruby Slate NodeJS on CentOS 7
Slate is Beautiful static documentation for your API Required – Linux or OS X or Windows – Ruby version 2.3.1 or newer – NodeJS – Bundler — gem install bundler…
PHP Parse HLS M3U8 TS Links
Sometimes you have to grab HLS m3u8 files from external source, but those files are protected using domain lock. So somehow you need to grab m3u8 and ts files from…
PHP in Amazon Lambda
Clone or Download this GitHub Repo https://github.com/svnlabs/aws-lambda-php-template Make new folder lambda in current working directory of EC2 server # mkdir lambda Upload 2 files from zip to Amazon EC2 server…
Free SSL Certbot
Certbot, It was Let’s Encrypt Client previously. Automatically enable HTTPS on your website with EFF’s Certbot, deploying Let’s Encrypt certificates. Server Support – Apache – Nginx – Haproxy – Plesk…
PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib64/php/ modules/zip.so
CentOS 7 with PHP # php –ini PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/zip.so’ – /usr/lib64/php/modules/zip.so: undefined symbol: php_pcre_exec in Unknown on line 0 Configuration File (php.ini)…
Install Apache, MySQL, PHP 5.6 on Centos 7
Install Apache # yum update # yum install httpd # systemctl start httpd.service Now Browser your Apache Server http://Server_IP_address/ Enable Apache to start at server boot # systemctl enable httpd.service…
CentOS 7 + SELinux + Apache + PHP write/access permission
CentOS 7 have SELinux, it is security enhancement to Linux which allows users more control over access control. SELinux make problem to access or write files or directories – Can’t…
Facebook Delight Text Keywords
Facebook Delight Text display celebration balloons on Facebook Page / Post. Facebook have selected Greeting Text Keywords from different languages. Facebook Delight Text give celebration feel to Facebook Users. Keywords:[“Congrats”,”تهانينا”,”مبروك”,”ألف…
Amazon DynamoDB Formatted JSON using JQ
Linux sed is useful tool to format and transform plain text. But sed is not so useful for structured data like JSON. JQ is a sed-like tool easily deal with…
Access Skype SQLite Database
I was working for Online Radio Server setup with Icecast and Skype. This Radio Station was using Skype Group Calls with real listeners of station then I have to feed…
JavaScript Detecting Internet Connection
Offline.js automatically alerts users for their internet connection using AJAX requests. Download offline.min.js offline.html <script src=”offline.min.js”></script> <script> Offline.options = {checks: {xhr: {url: ‘offline.html’}}}; var run = function(){ // check internet…
PHP Spotify Web API
Spotify Metadata API https://api.spotify.com/v1/search?q=Maycon+%26+Vinicius+&limit=1&type=artist Error { “error” : { “status” : 401, “message” : “No token provided” } } Spotify Metadata API is deprecated. Spotify now have new Web API…
Bottle: Python Web Framework
I really like Bottle: Python Web Framework. Bottle is very simple, fast and powerful Python micro-framework. It is perfect for small web applications and rapid prototyping where you need simple/small…
FFMPEG make Video Lyrics using JPG MP3 SRT File
FFMPEG make Video Lyrics using JPG MP3 SRT File Input Files – Image (test.jpg) – MP3 File (test.mp3) – SRT Lyrics (test.srt) FFMPEG Command # ffmpeg -loop 1 -y -i…
How to add MP3 audio delayed in MP4 video?
FFMPEG Command: Add MP3 Audio file delayed in MP4 video file # ffmpeg.exe -i “fox-story.mp4” -itsoffset 5.00 -i “fox-story.mp3” -map 0:v -map 1:a -vcodec copy -acodec copy “The Fox and…
Song Lyrics: lrc2srt and srt2json
LRC2SRT.php <?php function lrc2srt( $lrc ) { $lrc = explode( “\n”, $lrc ); $srt = “”; $lines = array(); foreach ( $lrc as $lrcl ) { if ( preg_match( “|\[(\d\d)\:(\d\d)\.(\d\d)\](.+)|”,…