ssbostan / devops-bash-scripts Goto Github PK
View Code? Open in Web Editor NEWThe completest repository of BASH scripts for DevOps engineers
License: Apache License 2.0
The completest repository of BASH scripts for DevOps engineers
License: Apache License 2.0
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.