Skip to content

Instantly share code, notes, and snippets.

View Ruslan-Skira's full-sized avatar
🇺🇦
Working from home

Ruslan Skira Ruslan-Skira

🇺🇦
Working from home
View GitHub Profile
@Ruslan-Skira
Ruslan-Skira / pyproject.toml
Last active October 28, 2026 16:44
pyproject.toml file with collection of common used settings.
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "MEGA_DUPER"
version = "1.0.1"
description = "Future"
readme = "README.md"
requires-python = ">=3.11"
@Ruslan-Skira
Ruslan-Skira / .gitignore
Last active October 9, 2026 14:16
Gitignore file should be in a root of project.
# Virtual environment
venv
.venv
# IDE files
.idea
.vscode/
# AI settings files
GEMINI.md
@Ruslan-Skira
Ruslan-Skira / .gitmessage
Last active October 9, 2026 14:17
git commit message template for git and for copilot.
1. Save this file as .gitmessage in your repository root (or system home directory) and set it using
```git config --local config.template .gitmessage```
2. delete all above ☝️
# <type>[optional scope][!]: <description>
# ----------------------------------------------------------------------
# Allowed <type>: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
# Scope: Optional section in parentheses, e.g., feat(parser): description
# Breaking Change: Append ! before colon for breaking changes, e.g., feat(api)!: breaking change
@Ruslan-Skira
Ruslan-Skira / Makefile
Last active August 11, 2026 16:18
Makefile template
.PHONY: help lint run-app
.DEFAULT_GOAL := help
# Configuration
BLUE := \033[0;34m
GREEN := \033[0;32m
CYAN := \033[0;36m
NC := \033[0m
DIVIDER := -
@Ruslan-Skira
Ruslan-Skira / install_firefox_dev.sh`
Last active February 6, 2025 09:04
Installing Firefox Developer Edition on Ubuntu
#!/bin/bash
# 1. chmod +x install_firefox_dev.sh
# 2. ./install_firefox_dev.sh
# Define download URL and destination directory
DOWNLOAD_URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US"
DEST_DIR="/opt/firefox-developer"
# Download the latest Firefox Developer Edition tarball
echo "Downloading Firefox Developer Edition..."
wget -O firefox-developer.tar.bz2 "$DOWNLOAD_URL"
s3_client.upload_fileobj(file_obj.file._file, bucket, f'{object_name}')
@Ruslan-Skira
Ruslan-Skira / senior_requires_skills
Created January 22, 2023 10:28
interview questions and what should know senior python dev
1. Docker
2. Kubernetis
3. Base of DS
4. Sockets and network understanding.(https://www.amazon.com/Learn-PYTHON-Multiplayer-Adventure-Games/dp/B01ETTRZ3M)
5. Async python
6. Create custom descriptor. @property.
@Ruslan-Skira
Ruslan-Skira / interview_tasks.py
Created January 20, 2023 13:55
Logic tasks from job interview
# parameterize decorator
def args_info():pass
@args_info(all_values=False)
def power(n:int, pwr: int) -> int:
"""Put in the power"""
return n**pwr
# >>> power(2, 4)
@Ruslan-Skira
Ruslan-Skira / widows_python_env_installation.txt
Last active January 17, 2023 13:24
Windows Python environment installation.
python installation custom.
a. create custom short path
b. update PATH
After Pycharm installation
a. by admin run WindowsPowerShell
PS C:\WINDOWS\system32> Get-ExecutionPolicy
Restricted
PS C:\WINDOWS\system32> Set-ExecutionPolicy remotesigned
RemoteSigned
b.delete venv folder during creating new project. Because new venv will not created.
@Ruslan-Skira
Ruslan-Skira / serializers_mapping_keys_data.py
Last active February 16, 2024 10:38
If data has not the same keys and they are with dots in names i customized the to_internal_value function
"""serializers"""
import logging
from collections import Mapping, OrderedDict
from typing import Dict
from django.core.exceptions import ValidationError as DjangoValidationError
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from rest_framework.fields import get_error_detail, set_value, SkipField
from rest_framework.settings import api_settings