Simple docker-compose.yml
Simple Makefile
Auto in docker container entry after rebuild:
#docker #Makefile #docker_compose
version: "3.8"
networks:
your_project_network:
driver: bridge
services:
php:
build:
context: ./docker
volumes:
- "./:/application"
working_dir: "/application"
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8080:80"
networks:
- your_project_network
Simple Makefile
up:
docker compose up --force-recreate --remove-orphans --build --detach && make shell
log:
docker compose up --force-recreate --remove-orphans --build
shell:
docker compose exec php bash
ps:
docker compose ps
down:
docker compose down
Auto in docker container entry after rebuild:
# sudo nano /etc/bash.bashrc
alias shell='while true; do clear && make shell; sleep 1; done;'
#docker #Makefile #docker_compose
Forwarded from Laravel World
Руководство по выживанию в Laravel
Написано и оформлено с выдумкой в стиле гайдов по выживанию. Как не превратится в зомби-разработчика и сделать программирование снова приятным.
Написано и оформлено с выдумкой в стиле гайдов по выживанию. Как не превратится в зомби-разработчика и сделать программирование снова приятным.
Forwarded from Laravel World
the-laravel-survival-guide.pdf
30.3 MB
#SQL Swap rows
UPDATE fruit a
INNER JOIN fruit b ON a.id <> b.id
SET a.color = b.color,
a.name = b.name,
a.calories = b.calories
WHERE a.id IN (2,5) AND b.id IN (2,5)
Fix React + Tampermonkey = Empty fields.
https://stackoverflow.com/questions/35659430/how-do-i-programmatically-trigger-an-input-event-without-jquery#answer-62111884
https://stackoverflow.com/questions/35659430/how-do-i-programmatically-trigger-an-input-event-without-jquery#answer-62111884
Stack Overflow
How do I programmatically trigger an “input” event without jQuery?
I installed an event handler on an input using
var element = document.getElementById('some-input');
element.addEventListener('input', function() {
console.log('The value is now ' + element.val...
var element = document.getElementById('some-input');
element.addEventListener('input', function() {
console.log('The value is now ' + element.val...
echo 'Hello World'; # Test Telegram code highlight feature
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
Redis autocomplete not work? · Issue #519 · barryvdh/laravel-ide-helper
It's a new Laravel application and I'm required predis/predis. But the generated _ide_helper.php only has two Redis method. like this ...... class Redis { /** * Get a Redis connection by na...
Forwarded from Laravel World
Laracasts опубликовали бесплатный курс «PHP для начинающих», содержащий более 10 часов контента
https://www.youtube.com/watch?v=dVttuOjew3E
https://www.youtube.com/watch?v=dVttuOjew3E
YouTube
PHP For Beginners - Complete Course (2023) [Check Comment for HD version Link]
Watch Re-Uploaded HD version of this course here: https://youtu.be/fw5ObX8P6as
We all start somewhere. For programming, this series is the first step. I've designed it specifically for newcomers to, not just PHP, but programming in general. Here, you'll…
We all start somewhere. For programming, this series is the first step. I've designed it specifically for newcomers to, not just PHP, but programming in general. Here, you'll…
Detect f*cking biggest dir ("Arduino IDE" 200Gb with log)
du -Sh /* 2>/dev/null | sort -rh | head -20
🤮1