steve-levesque / Portfolio-Unix-Sysadmin

Scripts for Unix based OS with Bash and Perl made for tasks related to Sys.Admin, Hosting and DevOps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portfolio-Unix-Sysadmin

Contributors Forks Stargazers Issues MIT License

About

https://unsplash.com/photos/EUsVwEOsblE

Snippets

Docker

With docker, it is possible to save time by building containers from an image instead of doing everything from scratch each time.

- docker_entry.sh

Simple bash script file to check a file passed in the docker container. Useful if the Dockerfile is not enough.

- docker_example.txt (Dockerfile)

A dockerfile used to create the containers from a specified image. Helps reduce time with operations, especially if the task has a high chance to fail/leave mistakes.

Dotnet Web Hosting Sysadmin

Website hosting can be done with multiple languages. Dotnet is a web framework also referred as ASP.NET which is in C#. As support and open-source progressed, the process may still not be as linear as other frameworks (i.e. most JS Framework) and not as supported from deployment services (without any computer programming knowledge).

- dotnet_apache2_example.conf

An example of an apache2 web config. With dotnet, we can see a proxypass is needed to establish the communication correctly.

- dotnet_simplestart.service

Generally the case for all hosted applications, they need to run in order to be accessible. A simple service that would run a startup script with custom parameters.

- dotnet_simplestart.sh

Simple script to launch a dotnet project. It is possible to launch profiles by choice from the specified service.

Scripting

- perl_adv_associative_ref_array.pl (Perl Advanced Example)

Overview of subroutines (acts like functions), references, parameters, associative arrays and syntax tricks (i.e. notations, shortcuts).

Mostly not needed to do effective scripts.

perl adv

Directories and Files

Project's Tree
  |- docs         # Documentations and tutorial files.
  |- screenshots  # Pictures for the readme
  |- snippets     # Codes
  |- LICENSE
  |- README.md    # This file

Installation

Docker is needed on the machine for the docker scripts.

How to Execute

Execution of the scripts can be done traditionnally with a VM or a computer with a unix OS.

Contribution

Contributions are always welcome, thank you for you time. Here are the steps to do so.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/MyContribution)
  3. Commit your Changes (git commit -m 'Add MyContribution')
  4. Push to the Branch (git push origin feature/MyContribution)
  5. Open a Pull Request

License

See the LICENSE file at the root of the project directory for more information.

Acknowlegements and Sources

About

Scripts for Unix based OS with Bash and Perl made for tasks related to Sys.Admin, Hosting and DevOps.

License:MIT License


Languages

Language:Perl 83.4%Language:Shell 16.6%