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:
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
If you get error when dumping DB with drush CLI that says something like this
On big projects composer downloads take time, to make that faster there is a plugin called prestissimo
that will give you parallel installs of libraries. Per their statement they claim this benchmark example
288s -> 26s
If you have big sprint with big amount of task and put all of that into feature branch that you need to deploy (merge to master) then it is good to have one big final checkup before doing that. So what I do is this, go to your master branch and either make one temp branch from it like "master_temp" or do it directly there. For extra caution I use temp branch.
You want to check some environment variables values for your current setup. Log into mysql and type something like
In order to generate authenticated requests using
curl we can use the session cookie from a session in our browser. How to find that? Sign in to your site in your browser. Then find the cookie that starts with either
SSESS followed by a random string.