Use this simple command
sudo su - solr -c "/opt/solr/bin/solr delete -c some_collection"
Use this simple command
sudo su - solr -c "/opt/solr/bin/solr delete -c some_collection"
To use eslint on your site, probably the best idea is to install it locally and do it in drupal core dir as that is location of ESLINT config files that ship by default with drupal core (.eslintrc.json and .eslintignore). So you should go to drupal core directory and then install it via yarn:
Many time you will find something like this to put into your ssh/config file,
Recently I started using history command a lot. Just to check what I have done. One thing missing by default is timestamp, I want to know when I did something so to do that you can do this
Having problems with importing and exporting configurations on drupal 8 and (probably language) config files appearing out of nowhere, this might be due to git and permission problem. To solve that just do this
git config core.fileMode false
or even globally
Not many devs use try catch in custom code, especially in drupal 7. Thing is that it can save you from bigger problems if you wrap your (bad) code into that block, so lets just make simple example how to use it.
With docker4drupal its easy to enable solr whith docker-compose, its is also easy to do that with other drupal docker bundles. But to make this work it needs some manual work as well. First you need to make sure solr runs properly, test it, see that url to it shows it runs.
If you get error when dumping DB with drush CLI that says something like this
When you try to git stash and get some error like "error: unable to unlink old" with permission denied with it, it is at is says permission problem, but not on that file, but directory where that file is. So go to that folder where the problematic file is (usually it will be default folder) and give that folder permissions to write for user and group.
On big projects composer downloads take time, to make that faster there is a plugin called prestissimo
https://github.com/hirak/prestissimo
that will give you parallel installs of libraries. Per their statement they claim this benchmark example
288s -> 26s