Git Product home page Git Product logo

automata.sh's Introduction

Automata.sh

A set of recipes for automating Linux tasks.

Because we were built to do greater things!!

To-do

  1. Memory hogging task killer.

    So a bunch of tasks opens up in the background and if left for a while starts to Memory read a lot and makes my PC slower.

    Aim is to kill them automatically after they cross a threshold. I will customize it so that it can be easier to modify too.

    PS: I was killing them manually for a month now in the task manager every time I boot my PC.

  2. Working IP switcher.

    Everytime our college LAN goes down, all our frustated engineers starts to panic even more.

    Aim is to switch to a working IP or check real fast and tell them that it's actually gone.

Contribute

Want me to write something to automate your Linux tasks?

I would love to do so. Just open up an issue in the issue tracker.

Resources

Beginners (to learn shell scripting)

Web Portals

  1. Shell Scripting Tutorial This site is beginner friendly and will cover basics right from the scratch
  2. Tutorialspoint This is a good site for beginners with example and theory to explain concepts
  3. Learn Shell This web portal will provide you with the editor to try shell online at the same platform.
  4. City College of San Francisco Online Notes Although this may not be the best resource but will provide you the online notes for shell scripting

Free Online Courses

  1. Bash Scripting LinkedIn Learning You can try out this interactive course in your first free month by linkedin
  2. Shell Scripting Udemy This free course by Udemy will make you learn shell scripting from scratch using simple examples

YouTube Playlists

  1. Shell Scripting tutorials for beginners A complete playlist of 66 videos right from the beginning.
  2. Shell Scripting by edureka This one complete video covers all the basic part of shell scripting
  3. Shell Scripting Tutorial This is also a basic and beginner friendly video

Intermediate (to practice with some automation)

Web Portals or Blog

  1. Bash Academy This site comes with amazing resources about shell scripting.
  2. Emertxe Blog This web platform comes with automation using shell examples and explanations.
  3. The Startup This comes with pre defined examples with output for automating some tasks.

PDF Books

  1. Bash Notes for Professionals A PDF for professional notes
  2. Advanced Bash Scripting Guide This is an in depth book covering all the aspects
  3. Automating admin tasks using shell scripts and cron This book will cover from the basic till automating a task using shell script.

YouTube Playlists

  1. Bash shell scripting and automation This complete long video will cover every part of shell scripting and will relate it to automation.
  2. Complete Shell Scripting Tutorials This playlist of 40 videos will tell you about automation with shell scripting.
  3. Programming knowledge Shell Scripting Tutorials Although this may not be the best resource but will cover all the topics from the beginning to the end.

automata.sh's People

Contributors

aquatiko avatar piyush-chetwani avatar

Watchers

 avatar  avatar

automata.sh's Issues

[Feature Request] Swap contents of primary and secondary displays on hotkeys

Considering there are two different display devices connected to each other, the task is to swap all the windows open on the primary display with all windows opened on the secondary display.

Thoughts on how this can be done:

  • Identify all windows opened on display 1 (there must be some command for this).Store their reference in a variable.
  • Identify all windows opened on display 2 (there must be some command for this). Store their reference in a variable.
  • Run command for each opened window switching their display window. You know where to send each one with above steps. (Note: There are hotkeys like Win + left/right arrow, so a command exists too)
  • Attach the script to run on a hotkey (i.e combination of keys).

[Feature Request] Memory hogging task monitor

The current implementation of taskKiller.sh kills some process which were observed to be memory hogging and were redundant as well. Thus it was an easy solution.

Can you write a separate script which can monitor tasks (between a startup and shutdown) which are memory hogging and keep a record in a file. The aim to to generate an analysis of your background tasks over many system runs, so that it is easier for you to decide which are those tasks which are memory hogging and redundant. They can be added to taskKiller.sh for automatic killing of those task.

Note:

Be careful while killing unknown task. Some task are essentially required for system to function and upon killing will make a system crash state. There won't be any permanent risk but unsaved data can be lost.

[Feature Request] Working IP switcher

Every-time our college LAN goes down, all our frustrated engineers starts to panic even more.

Aim is to switch to a working IP (iteration over available IP(s) and a ping success could be one solution)
or check real fast and tell them that it's actually gone. (no available IP with successful ping).

Bonus points:
Can you write steps for automatic detection and execution of this scripts.
What about the most efficient solution with best latency?

Add desc. for automatic execution of scripts

All the scripts in this repository are used to automate some manual tasks. They can be run in any terminal to execute those tasks.
Part of automation is placing the scripts at right places in Linux directory so that it can be automatically executed by Linux when some specific actions are achieved.

The aim of this issue is to add description in README.md, describing the process to place these scripts.
Eg: taskkiller.sh needs to be executed on system startup. Write a description about the process to place the script and add it as a startup task.

(Same can be done for other new scripts too).

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.