-
Very simple: Print greeting: Write a function
greet(name)
that returns the string: "Hello, [name]!". 1.py -
Simple: Reversing text: Write a function
reverse_string(s)
that reverses the given string. 2.pyINPUT: '123456' OUTPUT: '654321'
-
Easy: Even numbers in a range: Write a function
count_even_numbers(start, end)
that returns the number of even numbers in the given range. 3.py -
Medium: Bracket validation: Write a function
is_valid_brackets(s)
that checks the validity of a string of brackets. 4.pyis_valid_brackets("()[]{}")
is_valid_brackets("([]}")
-
Hard: Sorting algorithm (QuickSort): Write a function
quick_sort(array)
that implements the QuickSort algorithm. 5.py
For the tasks related to Git, I want to know what commands you use; if something can be done through the UI, that's fine, but I want to know the console commands.
-
Basic: Creating a repository: Create a local repository.
Add aREADME.md
file with the content:# My Repository
.
Make a commit and link the repository to GitHub. -
Easy: Working with branches: Create a new branch called
feature
.
Add a filefeature.txt
with the content:New feature
.
Merge the feature branch into main. (How to do this?) feature.txt -
Hard: Resolving a merge conflict: Create a feature branch.
In the fileconflict.txt
, add different content in the main and feature branches.
Perform a merge and resolve the conflict manually. conflict.txt
Description: Create a script that retrieves data from a selected website (e.g., article titles from a blog). The program should:
- Use the
requests
library to fetch data. - Parse HTML using
BeautifulSoup
and extract headers (e.g.,<h2>
). - Save the retrieved data to a text file.
Tip: Ensure proper handling of HTTP errors and appropriate HTML parsing.
Description: Create a "Hangman" game in Python:
- The game randomly selects a word from a text file (e.g.,
words.txt
). - The user has 6 attempts to guess the entire word by providing single letters.
- The game displays progress (e.g.,
_ _ a _ _
), the number of remaining attempts, and the letters used. - After winning/losing, the game should offer the option to restart.
The goal is to gain practical knowledge in managing a Linux server, configuring basic network services, and implementing DevOps tools such as web servers, Jenkins, and integration with GitHub.
- Basic Server Configuration
- Update the operating system.
- Create a new user with administrative privileges.
- Configure a basic firewall.
- Domain Configuration
- Connect the domain to the server by setting the appropriate DNS records.
- Configure an SSL certificate for the domain using Let's Encrypt.
- Installation and Configuration of the Web Server
- Install and configure Apache or Nginx as the web server.
- Configure virtual hosts for the selected domain. (The domain will be provided to you.)
- Installation and Configuration of Jenkins
- Install Jenkins on the server.
- Configure basic Jenkins settings, including access via a web browser.
- Open the appropriate ports in the firewall to allow access to Jenkins.
- Connecting Jenkins to GitHub
- Create an SSH key for the Jenkins user and configure it in the GitHub repository.
- Create a new pipeline in Jenkins that will clone the code from the selected GitHub repository.
- Testing
- Check if the website hosted on the web server is accessible via the domain.
- Run the pipeline in Jenkins and confirm that the code has been correctly cloned from the GitHub repository.
I worked on Lisp-language
-
After Push
- Create a Jenkins job that has a post-build action set as a trigger to activate automatically after a git push event.
-
After PR
- Create another Jenkins job that has a post-build action set as a trigger to activate automatically after a pull request.
-
Set up WordPress on your main domain, and configure MySQL using PHPMyAdmin.
-
Set up Jenkins on a subdomain.
There was a big issue with a server, so i must do everythink from 0.
Configure my webiste with wordpress.
Learing the C language.
Trying to set up my website on tor (for fun).
Travel to the company headquarters and i worked on asm projects
- Setup Jenkins trigger to pull request.
- Configure multibranch Pipeline.
- Configure Jenkisfile to copy files from git repository and upload to wordpress folder on server.
Move a functioning WordPress and MySQL setup into Docker containers to simplify management, deployment, and scaling.
-
Install Docker and Docker Compose
- Ensure Docker and Docker Compose are installed on the server.
- Verify that they are functioning correctly.
-
Prepare Docker Compose Configuration File
- Create a configuration file to manage two services:
- MySQL database where WordPress will store data.
- WordPress application that will be accessible via the web.
- Configure the connection between the database and WordPress.
- Define persistent storage to prevent data loss upon container restart.
- Create a configuration file to manage two services:
-
Start Containers
- Launch all services in the background.
- Verify that the containers are running correctly.
-
(Optional) Reverse Proxy with Nginx
- Configure a proxy server to run WordPress on the standard port 80 instead of 8080.
- Option to add domain support.
Participating in daily DevOps life, meeting with the team and having lunch.
Make something with arduino uno eumlator.