Please open Telegram to view this post
VIEW IN TELEGRAM
docker-compose.yml
volumes:
- "~/.bash_history:/home/${HOST_USER_NAME}/.bash_history"
#docker #docker_compose #bash #history #bash_history
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
sudo apt install imagemagick
mogrify -format png image-for-convert.jpg
#imagemagick #imagick #bash #converter #convert #image #jpeg #jpg #png
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
๐2
Please open Telegram to view this post
VIEW IN TELEGRAM
server {
listen 80;
listen [::]:80;
server_name example.com;
root /srv/example.com/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
# fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}
location ~ /\.(?!well-known).* {
deny all;
}
}#nginx #laravel #php #config #default #server
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
sudo su
composer completion >> /etc/bash.bashrc
#composer #php #bash #completion
Please open Telegram to view this post
VIEW IN TELEGRAM
time sleep 5
Output:
real 0m5.005s
user 0m0.000s
sys 0m0.002s
#bash #time #sleep #execution
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM