-
поиск пустых процедур
^Процедура\s+[a-zA-Z0-9А-Яа-яёЁ_]+\(\)\s+Экспорт\s*\n\s*КонецПроцедуры
- используем
\n
-
поиск пустых строк
^(s*\n){2,10}
- заменять на
\n
- один перенос строки
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
Тестировалось на fedora | |
1. устанавливаем https://computingforgeeks.com/install-cisco-anyconnect-on-ubuntu-debian-fedora/ | |
2. Настройка сертификата | |
Имеется клиенский серт с ключом client.pfx | |
openssl pkcs12 -in client.pfx -out certificate.pem -nokeys | |
openssl pkcs12 -in client.pfx -out certificate.key -nocerts |
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 | |
set LOGFILE=%temp%\%random%.log | |
if exist %LOGFILE% ( | |
del /f /s /q %LOGFILE% > nul | |
) |
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
[Unit] | |
Description=RAS | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=forking | |
WorkingDirectory=/opt/1C/v8.3/x86_64 | |
User=usr1cv8 | |
Group=grp1cv8 |
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
// Автор @vsuh https://gitter.im/EvilBeaver/oscript-library?at=5b47160fc2d95c60f4d26a27 | |
ОчиститьСообщения(); | |
мд = Метаданные.Документы.СчетФактураВыданный; | |
ркв = мд.Реквизиты; | |
тчч = мд.ТабличныеЧасти; | |
Сообщить("#### Документ "+мд.Синоним+" | |
| |
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
WITH models AS ( | |
WITH data AS ( | |
SELECT | |
replace(initcap(table_name::text), '_', '') table_name, | |
replace(initcap(column_name::text), '_', '') column_name, | |
CASE data_type | |
WHEN 'timestamp without time zone' THEN 'time.Time' | |
WHEN 'timestamp with time zone' THEN 'time.Time' | |
WHEN 'boolean' THEN 'bool' | |
-- add your own type converters as needed or it will default to 'string' |
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
node { | |
stage('Создание пустой базы и обновление из хранилища') { | |
env.RUNNER_V8VERSION='8.3.10.2505' | |
env.RUNNER_IBNAME="/F${env.WORKSPACE}/build/ib" | |
cmd("runner init-dev --storage --storage-name tcp://storage.local/master --storage-user Мороз") | |
} | |
stage('Проверка логической целостности конфигурации') { | |
cmd_failsafe('runner checkconfig --junitpath build/out/ConfigLogIntegrity.xml --mode -ConfigLogIntegrity') | |
step([$class: 'JUnitResultArchiver', testResults: '**/ConfigLogIntegrity.xml']) |
- Вызов стандартной обработки из любого пункта меню. Обработка "Поиск ссылок на объекты" достаточно удобна и может пригодиться обычным пользователям. Однако не всегда возможно давать им доступ к меню "Все функции" из-за ограниченного уровня доступа пользователя. В этом случае можно добавить вызов обработки из стандартного меню.
Добавляем в конфигурацию новую команду и в модуле команды прописываем текст:
&НаКлиенте
Процедура ОбработкаКоманды(ПараметрКоманды, ПараметрыВыполненияКоманды)
ПараметрКоманды, ПараметрыВыполненияКоманды)
ПодключитьВнешнююОбработкуНаСервере();
ОткрытьФорму("ВнешняяОбработка.StandardFindByRef.Форма");
КонецПроцедуры
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
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
) | |
func main() { | |
bs := make([]byte, 7) | |
copy(bs[:], "0000003") |
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 | |
rem %1 – полный номер версии 1С:Предприятия | |
rem %2 – имя сервера (с портом агента). Важно указать именно 1540, а не 1541 | |
rem %3 – порт RAS | |
set SrvUserName=LocalSystem | |
set SrvUserPwd="" | |
set Agent=%2 | |
set RASPort=%3 | |
set SrvcName="ras %Agent%" |
NewerOlder