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
@echo off | |
setlocal | |
setlocal enabledelayedexpansion | |
rem https://www.cryptopro.ru/forum2/default.aspx?g=posts&t=20281 | |
set fname=%1 | |
echo fullname: %fname% | |
for %%f in (%fname%) do (start powershell -command "&{start-process -filepath reg '"ADD """HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\CProExclude\%%~nf""" /V """FileName""" /T REG_SZ /D """%%~nxf""" /F"' -verb RunAs}") |
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
https://habrahabr.ru/post/313342/ | |
# ROS 7 | |
in-interface=ISP1 - первый провайдер (основной) | |
in-interface=ISP2 - второй провайдер (резервный) | |
in-interface=ISP3 - третий провайдер (резервный резервного) | |
in-interface=bridge - интерфейс локальной сети | |
11.11.11.11 - дефолтный маршрут провайдера | |
22.22.22.22 - дефолтный маршрут провайдера |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>5.2</version> | |
<date>2021-09-08T08:38:20Z</date> | |
<groups> | |
<group> | |
<name>SELECTEL</name> | |
</group> | |
</groups> | |
<templates> |
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
#! /bin/bash | |
req=$(asterisk -rx "sip show peers" | grep UNREACHABLE | awk -F/ '{print $1}' | grep -E '^.{,4}$') | |
for i in $req; | |
do asterisk -rx "sip unregister ${i}"; | |
done |
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
/system script add dont-require-permissions=no name=bgp_watchdog_script owner=adminos policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="local state 0;\r\ | |
\nlocal scriptName \"bgp_watchdog_script\";\r\ | |
\n\r\ | |
\n:local nameif \"VPN_NAME_INTERFACE\"\r\ | |
\n:local namebgp \"BGP_PEER_NAME\"\r\ | |
\n:local timeout 30s\r\ | |
\n\r\ | |
\n:local token \"bot342410789:AAE4UDFGDFGDFDFHDFHDFGSvaZYIabGwx4gPHc\"\r\ | |
\n:local tokenchat \"-00000000000\"\r\ | |
\n\r\ |
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
#!/bin/ash | |
echo "Updating package list..." | |
opkg update > /dev/null | |
if [ `opkg list-upgradable | cut -d " " -f1 | wc -l` -gt 0 ]; then | |
echo "Available updates:" | |
opkg list-upgradable | |
echo "" |