$ ls -lh ./posts
// also on this box: ./practice, ./tools and ./games
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.
cat linux-create-a-python-alias-that-will-print-epoch-time.md →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…
cat linux-rename-a-file-appending-a-timestamp-one-liner.md →Docker: doing this will create huge images, how to avoid it.
When we create images we tend to think linear:
cat docker-doing-this-will-create-huge-images-how-to-avoid-it.md →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…
cat hacking-sshpass-for-a-legitimate-reason.md →Critical thinking, informations, and decisions.
What is critical thinking?
cat critical-thinking-informations-and-decisions.md →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…
cat diff-find-differences-of-two-files-in-remote-machines.md →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…
cat bash-tricks-how-to-copy-ssh-key-to-all-etc-host-entries-with-an-one-liner.md →