Coder Social home page Coder Social logo

devops-bash-scripts's Introduction

Hi ๐Ÿ‘‹, I'm Saeid Bostandoust

I'm a DevOps engineer, the guy who does everything.

LinkedIn Twitter

Stats

devops-bash-scripts's People

Contributors

ssbostan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devops-bash-scripts's Issues

New course New tasks

Hello all,

Hope you're doing well.

Welcome to our new DevOps course.

In this course, you must implement the following scripts:

  • Write a script to get a path from the user, make a backup, compress it and send it to an S3 bucket. For S3 storage, you can use Amazon S3 or MinIO in on-perm environments.

  • Extend the above script to do incremental backups instead of getting everything from scratch. You're able to use other tools like Restic, Kopia, etc.

  • Write a script to serve an HTTP server using bash and create two endpoints for the index page and health check.

  • Extend the above script and implement a simple API /api/v1/users to manage users. As a database, use local files.

  • Write a script to capture the current state of the file system and show if abnormal changes happened to the files.

  • Extend the above script to allow the user to recover the files that were changed to their previous state.

  • Write a script to watch the Docker config "/etc/docker/daemon.json" to catch the changes and automatically restart the service.

New tasks will come soon.

Good luck.

Add BASH scripts

Hi all contributors,

I hope you are doing well.

The following tasks are our primary goals:

  • 01 create a function that accepts dynamic arguments and sums them together and returns the result.
    Project name: function-dynamic-arguments
    Commit: add script:core function-dynamic-arguments

  • 02 create a function that gets a string and prints it in bold format.
    Project name: function-print-bold-string
    Commit: add script:core function-print-bold-string

  • 03 create a function that gets a string and prints it in italic format.
    Project name: function-print-italic-string
    Commit: add script:core function-print-italic-string

  • 04 create a function that gets a string and prints it in the given colour.
    Project name: function-print-colored-string
    Commit: add script:core function-print-colored-string

  • 05 create a function that gets a path and shows its total size in megabytes.
    Project name: function-get-directory-size
    Commit: add script:core function-get-directory-size

  • 06 create a function that gets a filename and a path, searches a path recursively and prints any paths that the given filename is not found in that. For example it gets .test as a filename and /etc as a path, and searches for .test in all subdirectories of /etc and prints any directory path that .test is not found in that.
    Project name: function-recursive-file-search
    Commit: add script:core function-recursive-file-search

  • 07 create a function that gets a file and prints all uncommented lines.
    Project name: function-file-print-uncommented-lines
    Commit: add script:core function-file-print-uncommented-lines

  • 08 create a function that prints hardware(CPU, RAM, Sensors, VGA, Hard) temperature.
    Project name: function-print-hardware-temperature
    Commit: add script:core function-print-hardware-temperature

  • 09 create a function that prints system information (Hardware, User info, System info, etc.) in a human-readable table.
    Project name: function-print-system-info
    Commit: add script:core function-print-system-info

  • 10 create a function that gets password and password confirmation from the user and if they are the same, returns the password. Input should be hidden and not printed in the terminal.
    Project name: function-get-password
    Commit: add script:core function-get-password

  • 11 create a function that checks the system load and prints an alert if the system load is more than 80% of the available resources. It should be based on the CPU count.
    Project name: function-system-load-alert
    Commit: add script:core function-system-load-alert

  • 12 create a function that prints the first 10 processes which are using more system resources than others.
    Project name: function-print-resourcey-processes
    Commit: add script:core function-print-resourcey-processes

  • 13 create a function that gets a group name and prints all users of that group.
    Project name: function-print-group-members
    Commit: add script:core function-print-group-members

PLEASE DO NOT SELECT TASKS BEFORE THE ANNOUNCEMENT IN THE TELEGRAM GROUP.

It will be updated with new tasks soon.

Thank you all.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.