Skip to content

Latest commit

Β 

History

History
48 lines (26 loc) Β· 1.64 KB

README.md

File metadata and controls

48 lines (26 loc) Β· 1.64 KB

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> [email protected]

  • Here is an example:

ssh -p 2220 [email protected]

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

regex_cheatsheet