sudo apt update
sudo apt install apache2
sudo ufw app list
sudo ufw allow in “Apache”
sudo systemctl start apache2 // to start apache server
sudo systemctl status apache2 // to know the status
sudo systemctl stop apache2 // to stop the server
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
$scope.loadGridData = function(url) { | |
$scope.mainGridOptions = { | |
dataSource: { | |
transport: { | |
read: { | |
url: url, | |
dataType: "json" | |
} | |
}, | |
pageSize: __grid_pagesize, |
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
<form class="row contact_form" action="contact_process.php" method="post" id="contactForm" novalidate="novalidate"> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<input type="text" class="form-control" id="name" name="name" placeholder="Enter your name"> | |
</div> | |
<div class="form-group"> | |
<input type="email" class="form-control" id="email" name="email" placeholder="Enter email address"> | |
</div> | |
<div class="form-group"> | |
<input type="text" class="form-control" id="subject" name="subject" placeholder="Enter Subject"> |
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
let numbers = []; | |
const total = 999999; | |
function createPrime() { | |
numbers[0] = 0; | |
numbers[1] = 0; | |
numbers[2] = 1; |
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 | |
// the message | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
$send_email = "moshiur.swe@gmail.com"; | |
// the message | |
$to = "$send_email"; // note the comma |
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
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Redux Plain</title> | |
</head> | |
<body> |
what do moshiur@pc:~$ means ?
- moshiur: The username of the current user
- pc: The hostname of the server
- ~: The current directory. In bash, which is the default shell, the ~, or tilde, is a special character that expands to the path of the current user’s home directory; in this case, it represents /home/sammy
- $: The prompt symbol. This denotes the end of the command prompt, after which the user’s keyboard input will appear
root@webapp:/var/www# Logged in as a root in var/www directory
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
<input type="text" id="autocomplete-input"> | |
<ul id="autocomplete-list"></ul> | |
<div class="userinfo"> | |
Latitude: <span id="id"></span><br> | |
Longitude: <span id="name"></span><br> | |
</div> |
- Download the desired .tar.gz or (.tar.bz2) file.
- Open Terminal
- Extract the .tar.gz or (.tar.bz2) file with the following commands
tar xvzf package.tar.gz
tar xvjf package.tar.bz2 - Navigate to the extracted folder using cd command
cd package
- Now run the following command to install the tarball
./configure
> make