PAvOps / Python_DevOps_Scripts

Python πŸ‘¨πŸ»β€πŸ’» Scripts for DevOps, SysAdmins, IT Specilist, Devs and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python πŸ‘¨πŸ»β€πŸ’» Scripts for DevOps, SysAdmins, IT Specilist, Devs and more.

Note πŸ“

The main purpose of this repo is to create a huge collection of useful script for all levels (Beginners to Experts) of IT Specialits, SysAdmins, DevOps, Developers and more...

Please feel free to fork this repo and contribute!

If you want to help with the README you're welcome as well. I want to make it as instructional as possible.

If you spot any errors please let me know.

Finally don't forget to give the repo a star if you like it. Thanks!

Intro πŸ—£

Python Cheatsheet

How to create a python scripts

  • Create a python file vim script_0.py type #!/usr/bin/env python3 on the first line.

Note: Inserting a shebang line (such as #!/usr/bin/env python3) as the first line tells the operating system what command we want to use to execute the script. or (sets the interpreter)

  • On the next line type print("Running script...")
  • On your terminal type chmod +x script_0.py to change the file permission.
  • Run the script from the terminal ./script_0.py

How to SSH

  • You can SSH to another computer by:

ssh -p <enter port number> username@ip.address

  • Here is an example:

ssh -p 2220 bandit0@bandit.labs.overthewire.org

Regex Cheatsheet πŸ•΅οΈβ€β™€οΈ

regex_cheatsheet

About

Python πŸ‘¨πŸ»β€πŸ’» Scripts for DevOps, SysAdmins, IT Specilist, Devs and more.


Languages

Language:Python 90.0%Language:Shell 10.0%