Redirect if file or directory not exists
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Redirect if file or directory not exists
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
| # find your curve | |
| openssl ecparam -list_curves | |
| # generate a private key for a curve | |
| openssl ecparam -name prime256v1 -genkey -noout -out private-key.pem | |
| # generate corresponding public key | |
| openssl ec -in private-key.pem -pubout -out public-key.pem | |
| # optional: create a self-signed certificate |
| # Generate private/public key | |
| > ssh-keygen -t ecdsa -b 521 | |
| > ssh-keygen -t ed25519 | |
| > ssh-keygen -t ecdsa -b 521 -f ./certs -m PEM | |
| # Add private key | |
| > ssh-add -K ~/.ssh/identity_file | |
| # Copy public key to remote host | |
| > ssh-copy-id -i ~/.ssh/identity_file username@remote_host_ip |
| xdebug.mode = debug | |
| xdebug.client_host = localhost | |
| xdebug.client_port = 9003 | |
| xdebug.idekey = PHPSTORM |
Show mount points
showmount --exports <ip>Mount
mount <ip>:<mount_point> <dest_folder>
# example| FROM ubuntu:latest | |
| ENV TZ=America/Los_Angeles | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| # Remove all dangling images | |
| docker rmi $(docker images -f "dangling=true" -q) | |
| # Filter by tag | |
| docker images -f "author=stefano" | |
| # List docker volume files | |
| docker run --rm -i -v=vol-name:/tmp/myvolume busybox find /tmp/myvolume |
| Host * | |
| IdentityFile ~/.ssh/id_rsa | |
| AddKeysToAgent yes |
| # Update your .gitignore then | |
| git rm -r --cached . | |
| git add . | |
| git commit -m "removed useless files" |