Smart 🧠 Fullstack
45 subscribers
168 photos
11 videos
13 files
153 links
About channel: everyday developer hints.

for (💲Coders as 💲Student):
echo("Hello 💲Student->name");
endfor;

Author: @BakirovRoman
Download Telegram
Simple docker-compose.yml
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
Написано и оформлено с выдумкой в стиле гайдов по выживанию. Как не превратится в зомби-разработчика и сделать программирование снова приятным.
#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)
echo 'Hello World'; # Test Telegram code highlight feature
#ngrok #webhook #telegram
How to debug telegram bot webhook / or any other webhook locally.
Medium
Forwarded from Laravel World
👉 Get #IP by #domain:
Command:
dig +short stackoverflow.com

Result:
104.18.32.7
172.64.155.249


P.S. Useful for check site IP after change DNS CNAME / A records.
Get system timers list:
systemctl list-timers

#Linux
This media is not supported in your browser
VIEW IN TELEGRAM
👍1😁1
#Arduino fix not detected board / port on Ubuntu.
sudo apt remove brltty
Detect f*cking biggest dir ("Arduino IDE" 200Gb with log)
du -Sh /* 2>/dev/null | sort -rh | head -20
🤮1
#Linux #snap install from file
sudo snap install --dangerous <file-*.snap>
Forwarded from RESTful api
Docker commands cheat sheet
👍1