This file contains 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
361 sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
362 sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
363 yum module enable php:remi-8.0 -y | |
364 yum install php | |
365 yum repolist | |
366 yum-config-manager --enable remi-php80 | |
367 yum install php | |
368 yum install php-fpm | |
369 yum install php8.0-{bz2,curl,intl,mysql,readline,xml} | |
370 php -=v |
This file contains 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
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
# Compile Composer with PHP Version | |
php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
# then install/createFile composer.phar | |
curl -sS https://getcomposer.org/installer |php |
This file has been truncated, but you can view the full file.
This file contains 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
<?php | |
if( ( isset($_SERVER['PHP_AUTH_USER'] ) && ( $_SERVER['PHP_AUTH_USER'] == "amol" ) ) AND | |
( isset($_SERVER['PHP_AUTH_PW'] ) && ( $_SERVER['PHP_AUTH_PW'] == "amol" )) ) | |
{ | |
} | |
else | |
{ | |
//Send headers to cause a browser to request | |
//username and password from user |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="refresh" content="5000" /> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> | |
<link href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" media="all" /> | |
</head> | |
<body> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script> | |
<script type="text/javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script> | |
<?php |
This file contains 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
Changes | |
/etc/php/7.4/fpm/pool.d/www.conf | |
`listen = /var/run/php/php7.4-fpm.sock` | |
`user = freeswitch` | |
`group = daemon` | |
`listen.owner = freeswitch` | |
`listen.group = daemon` | |
virtual Host Add below line |
This file contains 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
user freeswitch daemon; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
error_log /var/log/nginx/nginx_error.log crit; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} |
This file contains 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
<?php | |
namespace App\Models\mongo; | |
use Carbon\Carbon; | |
use MongoDB\BSON\UTCDateTime; | |
use DB; | |
use Jenssegers\Mongodb\Eloquent\Model; | |
class BotHistory extends Model | |
{ |
This file contains 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
{ | |
"api": "API", | |
"query": [ | |
{ | |
"$match": { | |
"input": "hi" | |
} | |
}, | |
{ | |
"$project": { |
This file contains 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
+++++++++++++++++++++++++++++++++++++++Basic Extension+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate - duplicate file right click on file | |
https://marketplace.visualstudio.com/items?itemName=tal7aouy.rainbow-bracket -different color open and close bracket (identify which bracket close in which location) | |
https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp -sftp connect (live changes code on server) | |
https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker | |
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint | |
https://marketplace.visualstudio.com/items?itemName=PeterSchmalfeldt.explorer-exclude | |
https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost //Display import/require package size in the editor (for javascript and typescript) | |
https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintell |
This file contains 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
<?php | |
/* | |
Array Challenge | |
Have the function ArrayChallenge(num) take the num parameter being passed and perform the following steps. First take all the single digits of the input number (which will always be a positive integer greater than 1) and add each of them into a list. Then take the input number and multiply it by any one of its own integers, then take this new number and append each of the digits onto the original list. Continue this process until an adjacent pair of the same number appears in the list. Your program should return the least number of multiplications it took to find an adjacent pair of duplicate numbers. | |
For example: if num is 134 then first append each of the integers into a list: [1, 3, 4]. Now if we take 134 and multiply it by 3 (which is one of its own integers), we get 402. Now if we append each of these new integers to the list, we get: [1, 3, 4, 4, 0, 2]. We found an adjacent pair of duplicate numbers, namely 4 and 4. So for this input your program should return 1 because it only |
NewerOlder