This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -i '/^$/d' list.txt | |
| It will overwrite the file with no blank lines. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #================Install Composer & Rabbitmq client================== | |
| "require": { | |
| "php-amqplib/php-amqplib": ">=2.6.1" | |
| } | |
| } | |
| composer update | |
| #Install On Ubuntu 18.04 | |
| sudo apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Parallel process with pcntl_fork() | |
| $data = array( | |
| '142.12.34.21', | |
| '75.34.21.34', | |
| '98.34.23.11', | |
| ''97.23.12.33 | |
| ); | |
| foreach($data as $each){ | |
| $pid = pcntl_fork(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Step-1: Install Nginx | |
| #EPEL stands for Extra Packages for Enterprise Linux. Because yum as a package manager does not include the latest version of nginx in its default repository, installing EPEL will make sure that nginx on CentOS stays up to date. | |
| #To install EPEL, open terminal and type in: | |
| yum install epel-release | |
| #To install nginx, open terminal and type in: | |
| yum install nginx | |
| #Send the project to server | |
| scp portal.zip root@host.net:/usr/share/nginx/html | |
| #Unzip the file | |
| unzip portal.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Installation | |
| #The easy way to install the application is with composer. Start by running the require command in composer | |
| composer require prodigyview/prodigyview | |
| #sender script | |
| use prodigyview\network\Socket; | |
| use prodigyview\system\Security; | |
| Security::init(); | |
| $socket = new Socket($ip, $port, array('connect' => true)); //Opening socket connection of the target server |