Linux: mailx, how to sent an email with an attachment and how to add timestamp to subject Scenario: we want to sent an email using mailx, the email must contain an attachment and the subject should be modified with a timestamp
Linux: create a python alias that will print epoch time Scenario: We need an alias for our shell that will print epoch time upon execution, this will be useful for scripts that will run locally.
Linux: Rename a file appending a timestamp one-liner Scenario: We have a script that runs every day, this script generates a file (report.zip) which always have the same name, this causes the…
Docker: doing this will create huge images, how to avoid it. When we create images we tend to think linear:
Hacking sshpass (for a legitimate reason) sshpass is a well known tool that everybody loves and hates at the same time, is very handy when you need to create scripts that use ssh…
diff: find differences of two files in remote machines Scenario: we have two files in two remote servers and we want to find differences between them without copying files etc, the servers are…