Skip to content

Instantly share code, notes, and snippets.

import groovy.json.JsonOutput
def call(Map config=[:]) {
def status = 'STARTED'
if (config.status) {
status = "${config.status}"
}
def emoji = ''
@Kirill
Kirill / profiles.json
Created September 3, 2021 10:02 — forked from mekhanme/profiles.json
Windows Terminal config
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"copyOnSelect": false,
"wordDelimiters": " ./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?│",
"defaultProfile": "{24e4b58f-d9bd-476e-9a95-bda3c133f5b4}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
@Kirill
Kirill / wt-tilda.ahk
Created September 3, 2021 09:59 — forked from ovcharik/wt-tilda.ahk
Autohotkey script. Run/Show/Hide Windows Terminal on top of the screen by F1 hotkey.
#NoEnv
#SingleInstance force
SetWinDelay, -1
DetectHiddenWindows, on
Menu, Tray, NoStandard
; Menu, Tray, Icon, wt-tilda.ico
Menu, Tray, Add, Exit, Exit
func main() {
s := time.Now()
args := os.Args[1:]
if len(args) != 6 { // for format LogExtractor.exe -f "From Time" -t "To Time" -i "Log file directory location"
fmt.Println("Please give proper command line arguments")
return
}
startTimeArg := args[1]
finishTimeArg := args[3]
@Kirill
Kirill / srv1cv83@service
Created April 13, 2021 14:59
1C Service ln -s /opt/1C/v8.3 /opt/1C/current More: https://infostart.ru/public/1341653/
[Unit]
Description=1C:Enterprise Server 8.3 (%I)
Requires=network.target
[Service]
Type=simple
User=usr1cv8
Group=grp1cv8
# Path to directory with claster data
// Коннектор: удобный HTTP-клиент для 1С:Предприятие 8
//
// Copyright 2017-2020 Vladimir Bondarevskiy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
@Kirill
Kirill / crserver.service
Created October 5, 2020 19:23
1C repository service
[Unit]
Description=1C 8.3 Confiration Storage Server
After=network.target
[Service]
Type=simple
ExecStart=/bin/bash -c "ulimit -n 500000 && /opt/1C/v8.3/i386/crserver -port 1542 -d /path/to/storage"
[Install]
WantedBy=multi-user.target
@Kirill
Kirill / ras.service
Created June 11, 2020 14:33
RAS Unit from 1C
[Unit]
Description=1C:Enterprise Remote Administration Service
After=network.target remote-fs.target nss-lookup.target
Requires=srv1cv83.service
[Service]
Type=simple
ExecStart=/opt/1C/v8.3/x86_64/ras cluster --port=1545
KillSignal=SIGINT
PrivateTmp=true
Restart=on-failure
@Kirill
Kirill / simple.service
Created June 19, 2019 14:14
Simple service for Linux: /etc/systemd/system/simple.service
[Unit]
Description=Simple Service Description
After=syslog.target
After=network.target
[Service]
Type=simple
WorkingDirectory=/usr/local/bin
User=root
Group=root
@Kirill
Kirill / .gitlab-ci.yml
Created May 29, 2019 14:04
Example of .gitlab-ci.yml for 1C EDT (GitConverter) repository
sonarqube_master_job:
image: emeraldsquad/sonar-scanner
stage: test
only:
- master
variables:
GET_VERS: 'PROJECT_VERSION=`cat src/Configuration/Configuration.mdo | grep "<version>" | sed "s|\s*<version>||" | sed "s|</version>\s*||"`'
before_script:
- 'eval $GET_VERS'
script: