Nginx Reverse Proxy
Sample Config from wordpress project
server {
listen 80;
server_name v2.benedikt.gr;
location / {
server {
listen 80;
server_name v2.benedikt.gr;
location / {
src: https://superuser.com/a/1419434
nmap -sP 192.168.0.0/24
// Replace letters | |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); | |
@if $index { | |
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); | |
} | |
@return $string; | |
} |
This is the LAMP / LEMP environment backup guide in case you want or need to try my highload LEMP installation.
As a first thing we will setup a variable that will store current date and time. We will use year-month-day_hours-minutes-seconds format:
now=$(date +"%Y-%m-%d_%H-%M-%S")
docker pull postgres | |
docker pull dpage/pgadmin4 | |
docker run \ | |
--name temppg \ | |
--net database_default \ | |
-p 54332:5432 \ | |
-e 'POSTGRES_USER=root' \ | |
-e 'POSTGRES_PASSWORD=root' \ | |
-e 'POSTGRES_DB=testtest' \ |
for git diff
or other commands
--global is optional
git config --global pager.diff false
Connect to Database
\c [databasename]
//src: https://github.com/swup/swup/blob/master/src/helpers/getCurrentUrl.js | |
const getCurrentUrl = () => { | |
return window.location.pathname + window.location.search; | |
}; | |
export default getCurrentUrl; |
//Src: https://github.com/swup/swup/blob/master/src/helpers/getDataFromHtml.js | |
import { queryAll } from '../utils'; | |
const getDataFromHtml = (html, containers) => { | |
let fakeDom = document.createElement('html'); | |
fakeDom.innerHTML = html; | |
let blocks = []; | |
for (let i = 0; i < containers.length; i++) { |
remove all containers
docker rm -f $(docker ps -aq)