- Move files who match the same pattern to another folder :
mv PATTERN ./folder
Forward ssh-agent rsa key to docker container
-> ruby on rails - ssh-agent forwarding into docker-compose environment is not working - Stack Overflow
⚠️ ️HYPER IMPORTANT : /run/host-services/ssh-auth.sock
Vim sed like
:s/foo/bar/g
Find each occurrence of 'foo' (in the current line only), and replace it with 'bar'.
:%s/foo/bar/g
Find each occurrence of 'foo' (in all lines), and replace it with 'bar'.
Apache force HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
SSH Tunnel
- first
3336
is your local port - the second one is the remote port
ssh -N -L 3336:127.0.0.1:3306 USER@YOUR_SERVER_HOST
Platform.sh X GitlabCi
Deploy To Platform.sh From Your GitLab CI Pipeline
Git update remote branches list
git remote update origin --prune
Git undo merge
Undo a Git merge that hasn't been pushed yet - Stack Overflow
Tmux
new window: ctrl+b c
Deamon (démon)
Programmes qui tournent en arrière-plan (exemple: httpd) : Daemon (informatique) — Wikipédia
Access host machine from docker container - host address
docker.for.mac.localhost
Writting good programs
Never rely on complex technology when a simpler one exist - Luke Smith
Enable syntax highlighting and color scheme with Vim
syntax on
colorscheme desert