- Python client: https://github.com/egorsmkv/libra-grpc-py
- Go client: https://github.com/phlip9/libra_example
- NodeJS client: https://github.com/bonustrack/libra-grpc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']; |
Чтобы не забыть и иметь централизованное место для этих полезных вещей.
Название | Примечения |
---|---|
Google Translate | - |
Bing Microsoft Translator | есть машинное произношение слов |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hello, FeinCMS | |
Инструкция по установке FeinCMS. | |
1) Создаём папку для проекта и переходим в неё | |
mkdir hello-feincms | |
cd hello-feincms | |
2) Создаём виртуальное окружение для проекта |