bash tricks: how to copy ssh key to all /etc/host entries with an one-liner Scenario: you have just landed to a company which does not have a an automation tool to copy your key to all hosts, to make things worse…
grep: compare two unsorted files and get unique lines Scenario: every day we run a report that produce a csv file with some IDs and we want to check the differences that those two files might…
Dockerize a Python application, work with containers. In this scenario we have a simple flask application that we want to dockerize, our application consists of a single file named server.py.
Linux: replace a character with another after N occurances of a character wit We have the following scenario, we have a file with the following contents
Linux parallel: how to execute a command in parallel and get arguments from a file Parallel is a command that can help you do your work faster because it can execute your commands in parallel.
Use rsync to copy only missing files and files with updated content from a remote server. Scenario: We need to copy from a remote server to local files we dont have and files that their content is updated, also we dont have ssh…
Linux: smarter file-system navigation on the command line One of the most used commands on the terminal is the “cd” command because working from the command line most likely means that you need to…
Python: Case In-sensitive argparse “choices” There are cases that we need to limit the options that a user will provide as command line arguments, to do this the easy way in python we…