Skip to content

Instantly share code, notes, and snippets.

View egorsmkv's full-sized avatar
🌍
world, hello

Yehor Smoliakov egorsmkv

🌍
world, hello
View GitHub Profile
import hmac
import hashlib
import base64
class ImgProxy:
"""
The class generates a signature for the imgproxy (https://github.com/DarthSim/imgproxy).
Author: Yehor Smoliakov (https://github.com/egorsmkv)
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]
#!/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
<!-- 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">
@egorsmkv
egorsmkv / log.c
Last active July 14, 2019 18:52
Simple logging for 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 June 25, 2019 18:56
A box with useful links around the Libra ecosystem
@egorsmkv
egorsmkv / check.php
Created May 9, 2019 18:38
A script for checking Laravel requirements
<?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 January 13, 2019 05:44
Полезные сайты/материалы/сервисы для изучения иврита

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

Переводчики

Название Примечения
Google Translate -
Bing Microsoft Translator есть машинное произношение слов
<?php
namespace app\models;
use yii\base\Model;
use Yii;
/**
* Simplified model with validation rules.
* All characters are allowed (you want emojis in the password? Go ahead).
@egorsmkv
egorsmkv / hello-feincms.txt
Created March 4, 2017 12:57
Краткая инструкция по установке FeinCMS
# Hello, FeinCMS
Инструкция по установке FeinCMS.
1) Создаём папку для проекта и переходим в неё
mkdir hello-feincms
cd hello-feincms
2) Создаём виртуальное окружение для проекта