Posts

Voice assistant to read mails daily

Image
          It's really time consuming work to check the mail daily and categories them. Mainly for the person who works in IT companies will have personal and work email so checking two mails daily is very tough.        So I created a script where it will read the emails for us.       Check out the github repo :  https://github.com/aravindaakash/selenium-automation/tree/main/mail_reader      step1:  Copy the above files or check out the repo in local.        step2:  Change the values in  mail_reader/constants.py      step3:  Save the email id and password in your profile. Encode the password with base64 encryption. Name the environment variable as  personal_email and personal_password . You can change the variable name as you like.      Run comment : python3 mail_reader/email_reader.py Note: You can add a cron job to execute this script in interval of time automatically. If you face this error:  imaplib.error: [AUTHENTICATIONFAILED] Invalid credentials (Failure) follow the steps t

Less than 2 sec to Clean and Organise your Desktop and Downloads

Image
                Hi, is your Desktop look messy with unwanted files or your downloads folder is filled with too many items. You can clean it in Less than 5 sec.        We are going to use a simple Ruby  script that automatically categories the files and moves them to the current folder. Github link :  https://github.com/aravindaakash/selenium-automation/tree/main/desktop_cleaner Source Code: (On-demand clean up)  require 'fileutils' home_path = Dir.home source_location = "#{home_path}/Desktop" destination_location = "#{home_path}/Documents" destination_folder = "#{destination_location}/Desktop_files" source_files = Dir.glob("#{source_location}/*") Dir.mkdir(destination_folder) unless Dir.exist?(destination_folder) errors_messages = [] source_files.each do |file| destination_type_folder = destination_folder unless File.directory?(file) file_type = file.split('.').last destination_type