This file contains hidden or 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
| // Css module object | |
| interface StyleObject { | |
| readonly [key: string]: string | |
| } | |
| /** | |
| * Represents a string of all classes from css modules. | |
| * @param {object} styleObject - Full object of css module. | |
| * @returns {string} The string representation of multiple css modules | |
| */ |
This file contains hidden or 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
| /** | |
| * Utility function to create logarithmic pagination | |
| * @param {number} currentPage Current page number | |
| * @param {number} totalPages Total number of pages | |
| * @param {string} gapCharacter The gap character ex. ... | |
| * @returns current page number, previous page number, next page number, array of pages (includes the gap character) | |
| */ | |
| function getPagination(currentPage = 1, totalPages = 1, gapCharacter = "...") { | |
| let prevPage = currentPage <= 1 ? null : currentPage - 1 | |
| let nextPage = currentPage !== totalPages ? currentPage + 1 : null |
This file contains hidden or 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
| # Set the environment variables from Portainer | |
| # | |
| # REDIS_PASSWORD=some_secure_password | |
| version: "3.9" | |
| services: | |
| redis: | |
| container_name: redis | |
| image: redis/redis-stack:latest |
This file contains hidden or 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
| # Set the environment variables from Portainer | |
| # | |
| # POSTGRES_USER=psql_demo | |
| # POSTGRES_PASSWORD=some_secure_password | |
| # POSTGRES_DB=psql_demo_db | |
| # POSTGRES_REPLICATION_USER=replicator | |
| # POSTGRES_REPLICATION_PASSWORD=replicator_password | |
| version: "3.9" |
This file contains hidden or 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
| # Set the environment variables from Portainer | |
| # | |
| # MYSQL_ROOT_PASSWORD=root_secure_password | |
| # MYSQL_USER=custom_user | |
| # MYSQL_PASSWORD=secure_password | |
| # MYSQL_DATABASE=database_name | |
| # MYSQL_REPLICATION_USER=replicator | |
| # MYSQL_REPLICATION_PASSWORD=replicator_password | |
| version: "3.9" |
This file contains hidden or 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/env python3 | |
| import boto3 | |
| import os | |
| import logging | |
| import sys | |
| import threading | |
| import tkinter as tk | |
| from tkinter import ttk, filedialog, messagebox | |
| from typing import Optional |