Skip to content

Instantly share code, notes, and snippets.

@zeegin
zeegin / maintenance.bat
Created April 2, 2019 22:58
1c postgres maintenance and backup for windows
@echo off
chcp 65001 > nul
set E1C_RAS=localhost:3545
set E1C_RAC=C:\Program Files\1cv8\current\bin\rac.exe
set DB_SERVER=localhost:3541
set DB_NAME=1C_DATABASE
set DB_USER=1C_ADMINISTRATOR
set DB_PWD=1C_PASSWORD
set PGUSER=PG_ADMINISTRATOR
@echo off
chcp 65001 > nul
if /%1 == / goto help
pushd "C:\Program Files\1cv8\current\bin"
1cv8.exe ENTERPRISE /F %2 /N %3 /P %4 /WA- /AU- /DisableStartupMessages /C ЗавершитьРаботуПользователей
pushd %2
"C:\Program Files\7-Zip\7z.exe" a -t7z %1 1Cv8.1CD 1Cv8Log\* -ms -mmt
@zeegin
zeegin / 1cv8.bat
Last active October 20, 2022 06:16
BSL Build cf from EDT
@echo off
SETLOCAL
set LOGFILE=%temp%\%random%.log
if exist %LOGFILE% (
del /f /s /q %LOGFILE% > nul
)
@zeegin
zeegin / junit_to_console.py
Created May 8, 2020 14:20
Script is printing junit result to console and stop the process if error or fails was found
#!/usr/bin/env python
# use as:
# python -u junit_to_console.py print junit.xml
import argparse
from junitparser import JUnitXml
from tabulate import tabulate