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
-- phpMyAdmin SQL Dump | |
-- version 5.2.1 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: db | |
-- Generation Time: May 05, 2024 at 03:05 PM | |
-- Server version: 11.3.2-MariaDB-1:11.3.2+maria~ubu2204 | |
-- PHP Version: 8.2.18 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
from dataclasses import dataclass | |
from ssl import SSLContext | |
from types import SimpleNamespace | |
from typing import Any, Optional, Mapping, Iterable, Union, Callable, Awaitable | |
from aiohttp.helpers import _SENTINEL | |
from aiohttp import BasicAuth, ClientResponse as ClientResponse, ClientTimeout, Fingerprint as Fingerprint | |
from aiohttp.typedefs import StrOrURL, LooseCookies, LooseHeaders | |
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
__author__ = "Николай Витальевич Никоноров (Bitnik212)" | |
__date__ = "23.10.2023 13:16" | |
from enum import StrEnum | |
import urllib3.util | |
from storages.backends.s3 import S3Storage | |
class AddressingStyle(StrEnum): |
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
#! /bin/bash | |
nowmkv="[Erai-raws] World Trigger 2nd Season - $1 [1080p].mkv" && echo $nowmkv | |
nowep="e$1" && echo $nowep | |
mkvmerge -o "World_Trigger_s02${nowep}_[1080p].mkv" --language 0:rus 'RUS Sound'/"[Erai-raws] World Trigger 2nd Season - $1 [1080p].AniDub.ac3" --language 0:rus Subs/Crunchyroll/"[Erai-raws] World Trigger 2nd Season - $1 [1080p].ass" "$nowmkv" |
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
!# /bin/bash | |
useradd -md /home/bit -s /bin/bash bit | |
usermod -aG sudo bit | |
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
version: "3.8" | |
services: | |
filebrowser: | |
image: filebrowser/filebrowser:s6 | |
ports: | |
- "8082:80" | |
environment: | |
PUID: "520" |
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
{ | |
"cats": [ | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/161be161-4888-41f3-a7c3-92c5981d35a6.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/b1994291-a4e5-4bde-b72c-a4cd9b0eb438.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/1460b0f8-c1c3-4a7e-95c9-83858ef0de60.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/da5bf215-45b2-4ace-b7d9-b6a8f85181ed.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/09834abd-90c7-493c-b66b-8d56ef362dce.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/8d52b12f-6409-447c-aafd-9cea830b1bbf.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/8ff736b1-2ce6-4616-a403-5dcef24a26a0.jpg", | |
"https://storage.yandexcloud.net/notes-bitt-moe/memos/2023/04/22/d20ee5a8-32af-4f0d-a70f-7aef11f9bc4a.jpg", |
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
{ | |
"version": "2", | |
"templates": [ | |
{ | |
"type": 3, | |
"title": "Firezone", | |
"description": "Firezone is an open-source remote access platform built on WireGuard®, a modern VPN protocol that's 4-6x faster than OpenVPN. Deploy on your infrastructure and start onboarding users in minutes.", | |
"platform": "linux", | |
"note": "Please visit <a href='https://github.com/Bitnik212/docker-compose/tree/master/firezone'>GitHub repository</a> for more info", | |
"logo": "https://raw.githubusercontent.com/Bitnik212/docker-compose/master/firezone/firezone-logo.png", |
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
#! /bin/bash | |
openssl genrsa -out rsaPrivateKey.pem 2048 | |
openssl rsa -pubout -in rsaPrivateKey.pem -out publicKey.pem | |
openssl pkcs8 -topk8 -nocrypt -inform pem -in rsaPrivateKey.pem -outform pem -out privateKey.pem |
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
#!/bin/bash | |
function checkDockerContainer() { | |
result=$(docker inspect --format="{{json .}}" $1 | jq '.NetworkSettings.Ports["'${2}'/tcp"][0].HostPort') | |
qoute='"' | |
if [[ "$result" == $qoute"$2"$qoute ]]; then | |
echo true | |
else | |
echo false | |
fi |