Skip to content

Instantly share code, notes, and snippets.

View risenxxx's full-sized avatar
🐈‍⬛
Building awesome applications

Evgenii Zakharov risenxxx

🐈‍⬛
Building awesome applications
View GitHub Profile
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"status": "success",
"data": {
"Ion Gem_Sakura (2%)": {
"floorPrice": 49.48,
"howMany": 4
},
"Jingle Bells_Purple Glass (1.4%)": {
"floorPrice": 1.8,
"howMany": 23
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using YamlDotNet.Core;
using YamlDotNet.Core.Events;
using YamlDotNet.Serialization;

Отлично, я проведу детальное сравнение Talos Linux, K3s, K0s и Kubeadm по следующим аспектам:

  • Потребление ресурсов (CPU, RAM, Storage)
  • Включенные базовые компоненты Kubernetes (kube-apiserver, etcd и т.д.)
  • Сетевая связность (поддержка Flannel, Calico и других решений)
  • Формат разворачивания компонентов (single binary или отдельные поды)
  • Доступность компонентов для мониторинга
  • Механизмы high availability и кластерного управления (используемые решения вроде etcd, их производительность и потребление памяти)
  • Формат представления: таблицы там, где это наиболее удобно для наглядности.
/* eslint-disable @typescript-eslint/no-explicit-any */
import { createEvent, createStore, Event, sample, Store } from 'effector'
import { combineEvents } from 'patronum'
interface CreateReadyOptions {
waitEachTime: Event<any>[]
waitOnce: Event<any>[]
reset: Event<any>
}
@risenxxx
risenxxx / .babelrc
Last active June 4, 2022 19:20
Effector + Next.js Draft
{
"presets": ["next/babel"],
"plugins": [["effector/babel-plugin", { "reactSsr": true }]]
}
@risenxxx
risenxxx / data-attributes.md
Last active July 27, 2021 10:32
Data-attributes

Вариации data-атрибутов для стилизации

1. Разные data-атрибуты без значения
<div data-list-item />

Плюсы:

{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
const glob = require("glob");
function beautify({ value, name, description }) {
return {
value,
name: `${name.padEnd(12, " ")} ${description}`,
};
}
function createPath(path, parent = '') {