Skip to content

Instantly share code, notes, and snippets.

@zeegin
zeegin / ecmaScriptInfo
Created October 8, 2024 13:45
Проверяет версию JavaScript
var ecmaScriptInfo = (function() {
// () => { is not allowed
function getESEdition() {
var array = [];
switch (true) {
case !Array.isArray:
return 3;
case !window.Promise:
return 5;
case !array.includes:
@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
@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 / 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
@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
)