Skip to content

OsamaRab3/Work-Automation-Scripts

Repository files navigation

Work Automation Scripts

This repository contains a collection of scripts designed to automate and simplify daily tasks. These scripts cover a variety of functions, from opening frequently used applications to managing files and directories efficiently.

Scripts Included

  1. firefox.sh
    • Description: Opens Firefox. If a URL is provided as an argument, it opens the specified URL in Firefox. If no URL is provided, it simply opens the browser.
    • Usage:
      ./firefox.sh [URL]
    • Example:
      ./firefox.sh https://www.example.com
  2. urlshort.sh
    • Description: This script shortens a given URL using a URL shortening service . It outputs the shortened URL to the terminal.
    • Usage:
      ./urlshort.sh <long_url>
    • Example:
      ./urlshort.sh  https://www.example.com
  3. screenshot.sh
    • Description: Takes a screenshot and saves it to a specified directory.
    • Usage:
      ./screenshot.sh
    • Example:
      ./screenshot.sh
    • Notes: The screenshot will be saved in the ~/Pictures/screenshots directory with a timestamp in the filename. Ensure gnome-screenshot is installed.
      • install gnome-screenshot
       sudo apt-get install gnome-screenshot
  4. todo.sh
  • Description: A script to manage your to-do list. You can add tasks, mark tasks as done, list all tasks and completed tasks, and clear all tasks.
  • Usage:
    • Add a Task:
    ./todo.sh add task1
    • Mark a Task as Done:
    ./todo.sh done task1
    • List All Tasks and Completed Tasks:
    ./todo.sh list
    • Clear All Tasks:
    ./todo.sh clear
  1. download_file.sh
  • Description: Downloads a file from a URL using wget.
    • Usage:
      ./download_file.sh https://example.com/file.zip
  1. reboot.sh
  • Description: Reboots the system.
    • Usage:
      ./reboot.sh
  1. list-dir.sh
  • Description: List files in a directory
  • Usage:
     ./list-dir.sh
  1. Process.sh
  • Description: The script executes the ps command to display the list of processes running on the system.
  • Usage:
     ./Process.sh

How to Use

  1. Clone the repository:
    git clone https://github.com/OsamaRab3/Work-Automation-Scripts.git
    
    cd Work-Automation-Scripts
    
    chmod +x *.sh
    
     ./script_name.sh [optional_arguments]
    
    

Contributing

Feel free to contribute by adding more useful scripts or improving the existing ones. Please ensure that your scripts are well-documented and tested.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages