Skip to content

Instantly share code, notes, and snippets.

@imerla1
imerla1 / grafana-model.json
Created September 13, 2023 14:57
Grafana dashboard model
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@imerla1
imerla1 / db.json
Created September 10, 2023 09:38
Test Data
{
"venueName": "Hrazdan Stadium",
"eventName": "Snoop Dogg",
"readableDate": "23 Sep 2023",
"rawDate": "2023-09-23T20:00:00",
"eventId": 152172533,
"soldTickets": 4,
"availableTickets": 25,
"totalTickets": 29,
"allSections": [
goga:
resources_to_collect: ["Фелинойская вобла", "Лунный сазан"]
instance: https://w1.dwar.ru/hunt_conf.php?mode=hunt_farm&area_id=139&instance_id=0
resource_request: https://w1.dwar.ru/hunt_conf.php?mode=farm&action=chek&xy=0&sig=823fc57207875f449c2128baccd7efb7&num={}&t=1
instrument_request: https://w1.dwar.ru/action_run.php?code=PUT_ON&url_success=user_iframe.php%3Fgroup%3D2%26update_swf%3D1&url_error=user_iframe.php%3Fgroup%3D2%26update_swf%3D1&artifact_id=6220396110&in[slot_num]=7&in[variant_effect]=0&ajax=1&_=1684495102480.283
respawn_request: https://w1.dwar.ru/action_run.php?code=RESURRECT&url_success=area.php&url_error=area.php&in[mode_id]=1
profile_dir: Profile 16
nickname: Goga_
fisherman:
@imerla1
imerla1 / sporttemplate.repository.ts
Created January 18, 2023 11:48
NestJS mongoose Repository Template
import { Injectable, InternalServerErrorException } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import {
SportTemplate,
SportTemplateDocument,
} from './schemas/sporttemplate.schema';
import { NftEditionTemplate } from '../edition/schemas/nft-edition.schema';
/**