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
-='cd -' | |
...=../.. | |
....=../../.. | |
.....=../../../.. | |
......=../../../../.. | |
1='cd -' | |
2='cd -2' | |
3='cd -3' | |
4='cd -4' | |
5='cd -5' |
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
--- | |
version: "2" | |
services: | |
dbserver: | |
image: mysql:latest | |
container_name: dbserver | |
environment: | |
- MYSQL_ROOT_PASSWORD=Pansymeer5 | |
- MYSQL_DATABASE=gmir | |
- MYSQL_USER=gmir |
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
#!/bin/bash | |
########################################### | |
# | |
# Simple Shell script to clean/remove all container/images | |
# | |
# The script will | |
# - first stop all running containers (if any), | |
# - remove containers | |
# - remove images | |
# - remove volumes |
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
You can add this to your .htaccess: | |
# START XML RPC BLOCKING | |
<Files xmlrpc.php> | |
Order Deny,Allow | |
Deny from all | |
allow from 127.0.0.1 | |
errordocument 401 default | |
errordocument 403 default | |
errordocument 404 default |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "/opt/lampp/htdocs/demo" | |
ServerName demo.ghazanfarmir.local | |
ServerAlias *.demo.ghazanfarmir.local # fr.demo.ghazanfarmir.local, de.demo.ghazanfarmir.local, ch.demo.ghazanfarmir.local | |
<Directory "/opt/lampp/htdocs/demo"> | |
Options Indexes FollowSymLinks Includes execCGI | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
server { | |
listen 80; | |
server_name www.example.com | |
root /var/www/html/sites/example.com | |
## implementing Basic Authentication | |
auth_basic "Administrators Only Area" | |
auth_basic_user_file /etc/nginx/.htpasswd |
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
NameVirtualHost *:8888 | |
<VirtualHost *:8888> | |
ServerName example.com | |
DocumentRoot /Applications/MAMP/htdocs/cato | |
<Directory /Applications/MAMP/htdocs/cato> | |
DirectoryIndex index.php | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
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
// Multisites are installed via Sub Domains | |
// Root server_name should include main site as well as wildcard entry such as: | |
server_name example.com *.example.com |
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
# WordPress Configuration recommended by WordPress Community | |
# https://codex.wordpress.org/Nginx | |
# SSL is encrypted by Lets Encrypt | |
# https://letsencrypt.org/ | |
# Additional help taken from tutorial | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-centos-7 | |
# Description: You may skip steps you think are not relevant to you e.g I seek help from this tutorial | |
# to find location of the certificates and then tweaked configuration to what works in my situation. |
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
location /notphpmyadmin { | |
alias /usr/share/phpmyadmin; | |
location ~ \.php$ { | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $request_filename; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass php; | |
} |