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 # cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) Install Ruby 2.4 – CentOS 7 # yum update # yum groupinstall “Development Tools” # yum install … Read more

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 master HLS link. I am providing you PHP HLS Parser to grab internal information of HLS streams. Input encoded-03-31-16-thu-jun-2017.m3u8 #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=654000,RESOLUTION=568×320,CODECS=”avc1.4d0029,mp4a.40.2″ 1080p/encoded-03-31-16-thu-jun-2017.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2849000,RESOLUTION=568×320,CODECS=”avc1.42001f,mp4a.40.2″ 720p/encoded-03-31-16-thu-jun-2017.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1033000,RESOLUTION=568×320,CODECS=”avc1.42001e,mp4a.40.2″ … Read more

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 Instance in folder lambda lambda – index.js – php (binary) index.js ‘use strict’; exports.handler = function(event, context, callback) { var exec = require(‘child_process’).exec; exec(‘./php -v’, … Read more

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 OS Support – Web Hosting Service – Debian 7 (wheezy) – Debian 8 (jessie) – Debian 9 (stretch) – Debian testing/unstable – Debian (other) – … Read more

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) Path: /etc Loaded Configuration File: /etc/php.ini Scan for additional .ini files in: /etc/php.d Additional .ini files parsed: /etc/php.d/10-opcache.ini, /etc/php.d/20-bcmath.ini, /etc/php.d/20-bz2.ini, /etc/php.d/20-calendar.ini, . . . Install … Read more

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 Install Mariadb MySQL # yum install mariadb-server mariadb # systemctl start mariadb # mysql_secure_installation Enable MySQL to start at server boot # systemctl enable mariadb.service … Read more

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 serve files on directory – Can’t write to file SELinux is blocking the read/write operations # chcon -Rv –type=httpd_sys_rw_content_t /var/www/html/ (if you want to allow … Read more

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”,”تهانينا”,”مبروك”,”ألف مبروك”,”مبارك”,”Glückwunsch”,”Gratuliere”,”Enhorabuena”,”Felicitaciones”,”Félicitations”,”बधाई”,”Selamat”,”Congratulazioni”,”おめでとう”,”축하해”,”축하해요”,”Мои поздравления”,”Поздравляем”,”Поздравляю”,”ยินดีด้วย”,”Tebrikler”,”恭喜”,”Geluk”,”অভিনন্দন”,”Gratulace!”,”Til lykke”,”Tillykke”,”Συγχαρητήρια”,”Paljon onnea”,”Onnea”,”અભિનંદન”,”מזל טוב”,”Gratula”,”Čestitam”,”Čestitke”,”Čestitamo”,”അഭിനന്ദനങ്ങൾ”,”ಶುಭಾಶಯ”,”Tahniah”,”Grattis”,”अभिनंदन”,”ਵਧਾਈਆਂ”,”Parabéns”,”Gratki”,”Gratulacje”,”Felicitări!”,”Gratulujem”,”Blahoželám”,”Gefeliciteerd”,”வாழ்த்துகள்”,”வாழ்த்துக்கள்”,”అభినందనలు”,”مبارکباد”,”Chúc mừng”,”Честитам”,”Hongera”] What is a Self-XSS scam? A Self-XSS scam usually works by promising to help you access somebody else’s account. … Read more

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 JSON. ./jq is a lightweight and flexible command-line JSON processor. Install jq on OS X: brew install jq Install jq on Ubuntu: apt-get install jq … Read more