DEV Community

neothone
neothone

Posted on • Edited on

Shared notes for PHP Symfony, Vue Javascript and development in the broad sense

Instead of occasionally create many posts for share a little piece of code or small tips, I'll share on this unique post which it'll grow with the time... and you can search with CTRL or CMD + F ;-)

Bash

On new naked ubuntu server, this script install php & nginx: https://dev.to/neothone/bash-script-for-install-php-on-naked-ubuntu-2404-389f

Git

Ignore file globaly

If you need to set up global excluded files, you can set core.excludesfile configuration file to point to a global ignore file e.g:

Unix or Windows git bash:

git config --global core.excludesfile '~/.gitignore'
Enter fullscreen mode Exit fullscreen mode

EOL and file-system permissions

Projects are sometimes on Windows, then on Linux or MacOS. With git, problems with end of line or with de file-system permissions can appears.

Solution to all theses problems is :

git config --global core.autocrlf input
git config --global core.fileMode false
Enter fullscreen mode Exit fullscreen mode

With --global option the configuration is applied for every projets (past and future).

Each time that I'm on a new computer, I forgot the exact commands. Now, it's here!


Javascript

Good alternative to traditional wysiwyg editor

Editor.js

Top comments (0)