Пример выгрузки файлов на Яндекс.Диск из Bash через официальный REST API.
Тут все просто.
Пример выгрузки файлов на Яндекс.Диск из Bash через официальный REST API.
Тут все просто.
This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR
This tutorial assumes that the VPN server and VPN client are both running CentOS operating system.
Log into your CentOS server, then run the following commands to install WireGuard.
# CentOS 8
ipset
:apt-get install ipset
ipset create tor iphash
#!/bin/bash | |
# Block Tor Exit nodes | |
IPTABLES_TARGET="DROP" | |
IPTABLES_CHAINNAME="TOR" | |
EXTERNAL_IP="xx.xx.xx.xx" | |
if ! iptables -L TOR -n >/dev/null 2>&1 ; then | |
/sbin/iptables -N TOR >/dev/null 2>&1 | |
/sbin/iptables -A INPUT -p tcp -j TOR 2>&1 | |
fi |
Не забываем подключать файл в шаблоне хлебных крошек.
Для этого в самом начале шаблона, сразу после подключения пролога, добавляем строчку:
include_once 'result_modifier.php';
/** | |
* @version 3.5 - 21.02.2023 | |
* @author Artem Kuznecov | |
* @email artem@web-ascent.ru | |
* @website https://web-ascent.ru | |
* @source https://snippets.cacher.io/snippet/79e169f9ca705c345531 | |
* @source https://gist.github.com/artemijeka/130fd58f6859999faafcea60de686262 | |
* @param {String|Node} obj.target | Блок который фиксируем | |
* @param {Boolean} obj.fixAtTop | Зафиксировать везде начиная с верха сайта | |
* @param {Boolean} obj.fixAfter | Зафиксировать после ухода этого блока за верх экрана |
<?php | |
namespace Burov\Handlers; | |
use Bitrix\Main\Loader; | |
use Bitrix\Sale\Location; | |
use Bitrix\Main\GroupTable; | |
/** |
<?php | |
use Bitrix\Main\Engine\Contract\Controllerable; | |
class ajaxTest extends \CBitrixComponent implements Controllerable { | |
function executeComponent(){ | |
$this->arResult = [ | |
'COMPONENT_ID' => $this->componentId() | |
,'SCRIPT_PATH' => $_SERVER['SCRIPT_NAME'] | |
]; |
<?php | |
global $DBType; | |
CModule::AddAutoloadClasses( | |
'crm', | |
array( | |
'CAllCrmLead' => 'classes/general/crm_lead.php', | |
'CCrmLead' => 'classes/'.$DBType.'/crm_lead.php', | |
'CCrmLeadWS' => 'classes/general/ws_lead.php', |