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 |
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 |
Host * | |
IdentityFile ~/.ssh/id_rsa | |
AddKeysToAgent yes |
# Update your .gitignore then | |
git rm -r --cached . | |
git add . | |
git commit -m "removed useless files" |
// Open Terminal | |
diskutil list // Show all disk and find your usb | |
diskutil umount /dev/disk2 // Use your usb mount point | |
sudo dd if=/path/of/iso.iso of=/dev/disk2 bs=1m |
# 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 |