A .gitignore file specifies the files that Git should ignore. Sometimes you may need to list all the files that Git should ignore. In this short note i will show 2 methods of how to list ignored files in Git.
Ansible files may often contain different secret strings e.g. passwords, tokens, keys etc., and the good practice is not to store them in a plain text but to encrypt them. This is especially important if your Ansible files are tracked in a source control system. This note shows the examples of how to encrypt and […]
In Microsoft Outlook when you “Reply” or “Replay all” to an email with attachments, by default these attachments are not included automatically in the reply like they are during email forwarding. To include the attachments in the reply you can click on “Forward” and then type in all recipients back, but this is not the […]
A QR code generator is an application which creates and stores different types of data in a QR code image file. A qrencode is a free command line tool for encoding string data in the QR code and saving it as a PNG or an EPS image. In this note i will show how to […]
To permanently stop seeding in Transmission, simply go to “Edit” → “Preferences” and follow the instructions below. This will make Transmission automatically stop seeding when it completes a download. In this article you’ll find step-by-step instructions on how to completely disable seeding in Transmission and how to stop seeding after download.
The cat command in Linux is used to print a file’s content to a standard output. Ansible can also be used to connect to a remote Linux or Windows host and print the content of a remote file or save it to a variable. This note shows the examples of how to “cat” a file […]
Ansible has built-in modules that can be used to create an empty file or a file with a content. These common tasks can be easily done using the Ansible’s file module (or win_file for Windows targets) and copy module (or win_copy for Windows targets). In this short note i will show the examples of the […]
Any command executed in Bash or any other Linux shell, has one input stream (stdin) and two kinds of output streams: standard output (stdout) and standard error (stderr). Each of these streams is represented by a numeric file descriptor: 0 – stdin, the standard input stream 1 – stdout, the standard output stream 2 – […]
If you try to download a file over HTTP/HTTPS provided by a dynamic link or through a chain of 301, 302 redirects, wget would normally save the file using a part of the URL that you’re using. At the same time, if you use this URL to download the file in a browser, it will […]
If your Linux user’s password is about to expire, you may see a message as follows on your login screen: Warning: Your password will expire in X days In this note i will show how to disable the Linux user’s password expiration from the command line using the chage command.