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
AuthType Basic | |
AuthName "XenForo Admin" | |
AuthUserFile "/home/********/.htpasswds/public_html/dummy/passwd" | |
require valid-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
<Files admin.php> | |
AuthType Basic | |
AuthName "XenForo Admin" | |
AuthUserFile "/home/********/.htpasswds/public_html/dummy/passwd" | |
require valid-user | |
</Files> |
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
<Files admin.php> | |
Order Deny,Allow | |
Deny from all | |
Allow from XX.XX.XX.XX | |
Allow from YY.YY.YY.YY | |
</Files> |
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 | |
echo dirname(__FILLE__); |
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 | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [NC] | |
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L] |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] | |
</IfModule> |
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 | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^SUB\.DOMAIN\.com$ [NC] | |
RewriteRule ^(.*)$ http://DOMAIN.com [R=301,L] |
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
cd Downloads/ | |
tar xf Python-3.6.4.tar.xz | |
cd Python-3.6.4 | |
./configure | |
sudo make | |
sudo make install |
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
# reading a value | |
name = "Go4Expert" | |
# Using interpreter as a calculator, let's calculate 45 * 3456, just type that and press enter | |
45 * 3456 | |
155520 | |
# Now let's perform a division 12/6689906 | |
12/6689906 | |
1.7937471767166834e-06 |
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's start with a ritual of programming by printing "Hello World!" | |
print("Hello World") | |
# you can also print the values if you want by using print function | |
# print has the following syntax | |
# print("statement or information", variableName) | |
print("company Name is", companyName) | |
print("Initial Budget is", initalBudget) | |
print("Per day Wage is", perDayWage) |