Skip to content

Instantly share code, notes, and snippets.

View Ozerich's full-sized avatar

Vital Ozierski Ozerich

View GitHub Profile
@Ozerich
Ozerich / .js
Last active May 31, 2025 11:47
const tariffs: Record<QuizTheme, { base: TariffPlan[], discount: TariffPlan[] }> = {
[QuizTheme.Quiz2]: {
base: [
{
id: 'MONTH_6',
name: '6-months plan',
periodLabel: '6 months',
price: 39.99,
oldPrice: 89.99,
atlantm.by {
handle_path /uploads/blog/* {
root * /srv/uploads/blog
file_server browse
}
handle {
reverse_proxy 127.0.0.1:3000
}
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
{"level":30,"time":1740004307262,"pid":764691,"hostname":"ubuntu-s-1vcpu-1gb-35gb-intel-nyc3-01","af_sub1":"EAIaIQobChMIq6ax88HQiwMV3zQIBR2GPxwTEAAYASAAEgIGP_D_BwECj0KCQiArby5BhCDARIsAIJvjISaXSoAg6kipqAI_QCgaAOkf0hhIUkTWKnz-x_ZNtUjwoAM7b-i8bMaArgKEALw_wcB","media_source":"googleadwords_int","event_time":"2024-02-19 03:36:01.000","app_id":"id6444069212","event_name":"af_start_trial"}
{"level":30,"time":1740004446349,"pid":764805,"hostname":"ubuntu-s-1vcpu-1gb-35gb-intel-nyc3-01","af_sub1":"EAIaIQobChMIq6ax88HQiwMV3zQIBR2GPxwTEAAYASAAEgIGP_D_BwECj0KCQiArby5BhCDARIsAIJvjISaXSoAg6kipqAI_QCgaAOkf0hhIUkTWKnz-x_ZNtUjwoAM7b-i8bMaArgKEALw_wcB","media_source":"googleadwords_int","event_time":"2024-02-19 03:36:01.000","app_id":"id6444069212","event_name":"af_start_trial"}
{"level":30,"time":1740004558730,"pid":764905,"hostname":"ubuntu-s-1vcpu-1gb-35gb-intel-nyc3-01","af_sub1":"EAIaIQobChMIq6ax88HQiwMV3zQIBR2GPxwTEAAYASAAEgIGP_D_BwECj0KCQiArby5BhCDARIsAIJvjISaXSoAg6kipqAI_QCgaAOkf0hhIUkTWKnz-x_ZNtUjwoAM7b-i8bMaArgKEALw_
curl --location 'https://api.monetai.pro/generate/text2image_async' \
--header 'Content-Type: application/json' \
--data '{
"aspect_ratio": {
"height": 9,
"width": 16
},
"num_generations": 1,
"prompt": "cupra formentor and family",
"seed": 582767,
ozerich@atlantm:/srv/vpn/x86_Ubuntu_Debian$ sudo ./itvpn --config client.ovpn
2024-11-20 11:22:11 us=614243 Initializing OpenSSL support for engine 'formica'
2024-11-20 11:22:11 us=614763 WARNING: file 'pwd' is group or others accessible
2024-11-20 11:22:11 us=614812 WARNING: file 'authpass.txt' is group or others accessible
2024-11-20 11:22:11 us=614889 Current Parameter Settings:
2024-11-20 11:22:11 us=614954 config = 'client.ovpn'
2024-11-20 11:22:11 us=615048 mode = 0
2024-11-20 11:22:11 us=615062 persist_config = DISABLED
2024-11-20 11:22:11 us=615141 persist_mode = 1
{
"advisories": [
"Infrequent/Mild Cartoon or Fantasy Violence"
],
"app_availability": {
"available_in": [
"DO",
"FR",
"BG",
"DK",
<?php
namespace App\Operations\Developers;
use App\Models\Game;
use App\Models\User;
use App\Models\UserDeveloper;
use App\Repositories\GamePlatformRepository;
use App\Repositories\GameRepository;
use App\Repositories\UserDeveloperRepository;
async loadRelationshipsForEntity(entity: BaseEntity, repo: Repository<any>, relationships: Array<string | [string, string[]]>) {
// @ts-ignore
const id = entity.id;
const { ...res } = await Promise.all(
relationships.map((relation) => {
// @ts-ignore
const relationsArray: string[] = Array.isArray(relation) ? [relation[0], ...relation[1].map(item => relation[0] + "." + item)] : [relation];
async findOneGameByUrlAlias(urlAlias: string): Promise<Game | null> {
const relations = [
"gamePlatforms",
"gamePlatforms.developer",
"gamePlatforms.developer.icon",
"gamePlatforms.developer.cover",
"reviews",
"reviews.user",
"gameSimilar",
"gameSimilar.gameSimilar",