Just discovered you can star a repository and add it to a list on GitHub. Great feature!
Just click on the down arrow on the “starred” button and add the repo to a list.
Drupal Consultant
Just discovered you can star a repository and add it to a list on GitHub. Great feature!
Just click on the down arrow on the “starred” button and add the repo to a list.
On the weekend I spent time learning about Gatsby. For people who don’t know, Gatsby is a React based site generator.
Usually, when I try and learn new tech, I often avoid the official documentation and look for videos on YouTube or a free course. This is a bad habit of mine because most projects have proper documentation these days.
However, the Gatsby documentation is outstanding, especially the tutorials. So if you want to learn how to use it, then I’d start with the “Gatsby.js Tutorials” section and work your way through it.
In a recent project, I needed to add a file which was in a folder that was ignored using the .gitignore file.
Now I could edit the .gitignore file, commit the file, then edit the .gitignore again. But this seemed like a cumbersome way to do it.
Luckily I found that the git-add
command has a --force
option.
-f --force Allow adding otherwise ignored files.
For example:
git add --force ignored-file.php
Enjoy.
$ zip -r drupal.zip html
This zips all files and directories.
Here is an example of import sql files from ssh.
$ mysql -uUserHere -pPasswordHere -hlocalhost PutYourUserHere_databaseName < database.sql
$ mysql -u username -p dbname < data.sql