cyber-security
Coding
Baffometo

Create Torrents for each file in directory

This is a quick python script for creating torrents for each file in directories and sub directories. We are using the following tools: Python3 Python Module Torf Python module OS This quick script basically will import both modules if you do not have them you can install them with pip,

Read More

Mount shared folder using creds file.

Your can specify the credential location in “mount” command by using argument “-o”, the could should like the following: The cred file has to have a specific format. Is not necesary to use “quotes”, just enter your user and password, if you have a domain do it, otherwhise just remove

Read More

Export terminal commands to file.

You can export the last commands from your terminal by using the command “tail”. -n is the total number of rows you want to copy, the location of bash_history is: The end code should like like this:

Read More
cyber-security
Coding
Baffometo

Auto Back up folders Linux

There are some web applications such as Sonarr v2 and Radarr that not have an auto back up wich with some basic bash scripting and Cron can be set up in less than five minutes, that way the next time you format your Pi you can easily restore a back

Read More
cyber-security
Coding
Baffometo

Google Sheets and Python

Nowadays Google Docs has been integrating a whole bunch of features with its amazing API that you can use from triggering a Python script hosted in a local server by a request from IFTTT webhooks for example, which is the final project of this series of posts about my self-education

Read More