Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →
This is handy if you have 2 different users deploying code to the same directory, such as a deploy user and CI user.
Docker deprecated their v1 API in September 2022, now we can get a lot more details about each tag using the v2 API.
I switched to v2 because it's faster and profiles let you easily start specific services in different environments.
You can almost cut your app's Docker Compose recreate containers time in half by avoiding needless recreates on .env changes.
I recently came across a bug when trying to pin Docker Compose v2 using Ansible 2.13.3. Here's the steps I took to determine it was a bug.
You could use this site to test an HTTP client or perhaps the return value of a mocked API response in development.
This could be handy to see how many people committed to a repo or find out who the recent contributers are.
It will add a new line by default which will change your value, consider using printf instead or at least echo with the -n flag.
This can be really handy if you want to do something specific in a shell script only if a file has been changed in git.
We'll go over creating the logic for the whitelist, an optional exempt list, working with CIDR blocks and benchmarking a few solutions.
Cut can make quick work out of extracting useful data from CSV files or output that has a pattern of characters or bytes.
With 1 line of code and 1 function we'll be able to randomly pick something X% of the time and something else Y% of the time.
This will work if you're using bash or zsh and it doesn't require installing any third party tools or plugins.
It compares uncommitted changes vs your latest commmit, --cached does the same thing, it's an alias to --staged.
Sometimes you may want to back out of the latest Docker Desktop and install an older version. Here's how to do that.
This is handy in case you forgot to copy something or decide you want to select a few more lines.
Redis has 2 commands to help you discover how fast or slow it is to connect to your Redis server and how good your Redis server is.
As of May 30th 2022 Google disabled the less secure apps option to login to Gmail over SMTP, 2FA + app passwords fill that void.
This is handy to prevent typos because this option will halt your script as soon as an unset variable is found.
This is really handy to avoid having to add a source path as a comment or ignore SC1091 every time you source a file.
Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.