Skip to content

Instantly share code, notes, and snippets.

View voroninadm's full-sized avatar
🏝️
waiting for a summer

Rinceoir voroninadm

🏝️
waiting for a summer
View GitHub Profile
@voroninadm
voroninadm / Caddyfile
Created August 29, 2024 10:59 — forked from clandestine8/Caddyfile
Multi App PHP / Laravel Docker Development Environment using Caddy as Reverse Proxy
app.localhost {
tls internal
root * /srv/App/public
php_fastcgi App:9000 {
root /var/www/public
}
file_server
encode gzip
}
@voroninadm
voroninadm / gist:fe69e241061a7363960639149eea17a8
Last active August 29, 2024 10:32
linux for developers. add some info to bash
***Добавляем имя ветки в гите, если заходим в папку с гит-проектом
# Add git branch if its present to PS1
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ '