This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
db: | |
image: postgres | |
container_name: pgbook_postgres | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
ports: | |
- 5432:5432 | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
"""Open obsidian vault. | |
Set the path to the vault in a variable VAULT_PATH. | |
Examples: | |
- absolute path: | |
VAULT_PATH: str = "/home/user/path-to-vault" | |
- relative path - current folder: | |
VAULT_PATH: str = "" | |
- relative path - subfolder of the root folder: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Class for GitHub API.""" | |
import json | |
import mimetypes | |
import requests | |
from logger_setup import LoggerLevel, get_logger | |
from semantic_versioning import SemanticVersioning | |
logger = get_logger(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Create GitHub release.""" | |
import getopt | |
import logging | |
import os | |
import shutil | |
import sys | |
from github_api import GithubApi, parse_version | |
from logger_setup import LoggerLevel, get_logger | |
from semantic_versioning import SemanticVersioning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.python.org/ftp/python | |
PYTHON_VER=3.10.6 | |
sudo apt -y install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libsqlite3-dev \ | |
&& sudo apt -y install libssl-dev libsqlite3-dev libreadline-dev libffi-dev libbz2-dev liblzma-dev \ | |
&& wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tgz \ | |
&& tar -xf Python-$PYTHON_VER.tgz \ | |
&& cd Python-$PYTHON_VER \ | |
&& ./configure --enable-optimizations && make -j "$(nproc)" \ |