Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
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
{"lastUpload":"2021-08-01T07:43:51.529Z","extensionVersion":"v3.4.3"} |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
def calculate_star_rating(ratings): | |
"""This function calculates the star rating of the given list with array positions as | |
0 - 1 Star | |
1 - 2 Stars | |
2 - 3 Stars | |
3 - 4 Stars | |
4 - 5 Stars | |
""" | |
stars = [1,2,3,4,5] | |
return round(sum(list(map(lambda a,b: a*b, stars, ratings))) / sum(ratings), 2) |
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
{ | |
"$schema": "", | |
"$id": "http://example.com/root.json", | |
"type": "object", | |
"title": "Myanmar NRC Schema", | |
"description": "JSON Schema for Myanmar NRC Number", | |
"required": [ | |
"nrc" | |
], | |
"properties": { |
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
<VirtualHost *:80> | | |
ServerName test.org | | |
ServerAlias www.test.org | | |
DocumentRoot /var/www/test.org/public_html/ | | |
ErrorLog /var/www/test.org/logs/error.log | | |
TransferLog /var/www/test.org/logs/access.log | | |
</VirtualHost> |
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
#/bin/bash | |
#Install PHP 7 repository | |
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm | |
#Install packages | |
dnf install php70w -y | |
dnf install php70w-gd.x86_64 -y | |
dnf install php70w-dba.x86_64 -y | |
dnf install php70w-fpm.x86_64 -y |
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 Codeception\Module; | |
/** | |
* Additional methods for DB module | |
* | |
* Save this file as DbHelper.php in _support folder | |
* Enable DbHelper in your suite.yml file | |
* Execute `codeception build` to integrate this class in your codeception | |
*/ | |
class DbHelper extends \Codeception\Module |