Little Git Tricks: Ignore Everything in a Folder Except a Few Files
With the .gitignore file we can tell Git to ignore certain types of files (like *.exe) or whole folders. All it takes is an entry like this if we want to ignore the folder database:
With the .gitignore file we can tell Git to ignore certain types of files (like *.exe) or whole folders. All it takes is an entry like this if we want to ignore the folder database:
A year ago, I had the hope that with the COVID vaccine we are back in something called "normal" by summer. For a few weeks it looked like this could be true before it turned for the worse. While writing this post Switzerland starts the Omicron wave at the high point of our 5th wave (driven by Delta). And yet, as so often in the past two years, the situation around us seams to go unnoticed by the authorities. There is still a strong hybris that we are better and that our measures are sufficient.
A few weeks back I run into an annoying state with my remote desktop connection. All I could see was this:

Before we conclude this series, let us recapitulate what we learned over the last weeks on dev containers.
.Net 6 runs on Linux and that allows us to create a dev container without any hassle. Let's look what we need to run a minimalistic API project inside a dev container and connect it to the SQL Server we created last week.
Dev containers are not only for old software. They are also a great help when you plan a migration and need a new technology stack. Let's look how SQL Server 2019 works nicely with our dev containers.
After the preparations of the last weeks, it is now time to put everything together and run our Rails application in a dev container.
PostgreSQL is a free and open-source relational database that I use for most of my private database projects. Today we explore the steps to put PostgreSQL into a dev container.
Having a running dev container is a good start, but only when we can write code is it useful. Let’s look how we can use Visual Studio Code to develop inside our container.
Last week we looked at the reason why we should use dev containers to write code. This week we create a dev container to develop a Ruby application on a machine that has no Ruby installed.
Why would you do that? Tools like rbenv are a great help to manage your Ruby environments. However, getting the right Ruby interpreter is only part of the setup. You need all your Gems and 3rd party tools in the right version, or nothing goes. My machine has no Ruby installed and by the end of this post I will run my Ruby Gem
'ruby' is not recognized as an internal or external command, operable program or batch file.