Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍
world, hello

Yehor Smoliakov egorsmkv

🌍
world, hello
View GitHub Profile
@egorsmkv
egorsmkv / algo.py
Last active Aug 31, 2020
An algorithm to search longest date intervals among a list of dates in Python (currently searches longest date intervals in months)
View algo.py
from datetime import datetime
from typing import List
def solve(date_items: List[datetime]):
"""
Get the longest date interval from the date_items list.
:param date_items:
:return:
View write_node_exporter.py
import sys
ETC_SYSCONFIG_NE = 'OPTIONS="--web.listen-address=:{port} --collector.textfile.directory ' \
'/var/lib/node_exporter/textfile_collector --collector.systemd --collector.processes"'
ETC_SYSTEMD_NE = '''[Unit]
Description=Node Exporter
After=network.target
[Service]
View install_node_exporter.sh
#!/usr/bin/bash
mkdir node_exporter
cd node_exporter/
wget https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz
tar xf node_exporter-1.0.1.linux-amd64.tar.gz
cd node_exporter-1.0.1.linux-amd64
mv node_exporter /usr/bin
View bar.blade.php
<!-- Main Header -->
<header class="main-header">
<!-- Logo -->
<a href="/" class="logo">
<span class="logo-mini"><b>A</b></span>
<span class="logo-lg"><b>ADMIN</b></span>
</a>
<nav class="navbar navbar-static-top" role="navigation">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
View k8s-links.md
@egorsmkv
egorsmkv / log.c
Last active Jul 14, 2019
Simple logging for C
View log.c
/*
* Copyright (c) 2017 rxi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@egorsmkv
egorsmkv / libra-ecosystem.md
Last active Jun 25, 2019
A box with useful links around the Libra ecosystem
@egorsmkv
egorsmkv / check.php
Created May 9, 2019
A script for checking Laravel requirements
View check.php
<?php
// This script checks all requirements which a server
// must have for correct work of Laravel 5.8
//
// Author: Yehor Smoliakov
$phpVersion = '7.1.3';
$exts = ['openssl', 'pdo', 'mbstring', 'tokenizer', 'xml', 'ctype', 'json', 'bcmath'];
@egorsmkv
egorsmkv / hebrew-useful-stuff.md
Created Jan 13, 2019
Полезные сайты/материалы/сервисы для изучения иврита
View hebrew-useful-stuff.md

Чтобы не забыть и иметь централизованное место для этих полезных вещей.

Переводчики

Название Примечения
Google Translate -
Bing Microsoft Translator есть машинное произношение слов
@egorsmkv
egorsmkv / list.md
Last active Apr 26, 2019
Це список платіжних агрегаторів та еквайрингів, які надають послуги з прийому платежів в Україні.
View list.md
Назва Сайт Тарифи Платіжні картки
LiqPay https://www.liqpay.ua/uk/ https://www.liqpay.ua/uk/tariffs Visa, Mastercard
Portmone https://www.portmone.com.ua/r3/uk/ecommerce https://www.portmone.com.ua/r3/uk/ecommerce Visa, Mastercard, ПРОСТІР
UA Pay http://acquiring.uapay.ua/ у договорі Visa, Mastercard, ПРОСТІР
Platon https://platon.ua/ua https://platon.ua/ua Visa, Visa Checkout, Mastercard, Masterpass, ПРОСТІР
FONDY https://fondy.ua/uk/ https://fondy.ua/uk/tariffs-fondy/ Visa, Mastercard, ПРОСТІР
You can’t perform that action at this time.