← All posts tagged code

Ilya-S-Zharskiy

choco upgrade -y oldcalc

вернули олдовый calc вместо нахуеверченного в клиентской версии индусами
https://i.imgur.com/Mv1ohr4.png

https://chocolatey.org/packages/oldcalc
https://winaero.com/blog/wp-content/uploads/2015/01/old-calculator-for-Windows-10-running-600x450.png

https://winaero.com/download.php?view.1795

https://chocolatey.org/content/packageimages/oldcalc.1.1.171010.png

Ilya-S-Zharskiy

ну шо, свежая винда шоле?
1903 19H1 V2

https://tb.rg-adguard.net/public.php

18362.356.19h1_release_svc_prod1.190903-1844

https://cloud.mail.ru/public/ucep/3E4EYnoEK

magnet:?xt=urn:btih:92e64f954e2f3e9923113198bbb6a0b0b6784dcf&tr=http%3A%2F%2Ftr.ysagin.top%3A2710%2Fannounce&xl=17090256896&dn=Microsoft%20Windows%2010%2010.0.18362%20Version%201903%20Updated%20September%202019%20RU

Product (Full Name): Windows 10 (business editions), version 1903 (updated Sept 2019) (x64) - DVD (Russian)
Product Family:
FileId: 85750
File Type: DVD
Language: Russian (ru)
Architecture: x64
File: ru_windows_10_business_editions_version_1903_updated_sept_2019_x64_dvd_49d75a68.iso
SHA1: 65f6ad1820aa8472c7e84c8a5c9a3e679d6eb365
File Size (MB): unknown bytes (0 MB)
Date release: 2019-09-25
Note:
For this multi-edition Business media, use a product key specific to the edition in the list you want to activate.

This multi-edition Business media includes the following editions:
Windows 10 Pro
Windows 10 Pro N
*Windows 10 Pro for Workstations
*Windows 10 Pro N for Workstations
Windows 10 Pro Education
Windows 10 Pro Education N
Windows 10 Education
Windows 10 Education N
Windows 10 Enterprise
Windows 10 Enterprise N


*Windows 10 Pro, version 1709 or newer, will need to be installed before using the Window 10 Pro for Workstations product key to activate that edition.

https://cloclo19.datacloudmail.ru/weblink/view/ucep/3E4EYnoEK/Windows_10_Version1903_19H1_aka_May2019Update-UpdatedSeptember2019_with_KB4515384_OSBuild_18362.356.19h1_release_svc_prod1.190903-1844_CONSUMER-BUSINESS-SERVER1903SAC_from-MSDN_5ENG-5RUS_10ISO_byWZT.png

Ilya-S-Zharskiy

*ЗУП *code

Ошибка 10207110
При заполнении начисления зарплаты за первую половину месяца более чем по 50 сотрудникам возникает ошибка:
{Обработка.МенеджерРасчетаЗарплаты.МодульОбъекта(2086)}: Ошибка при вызове метода контекста (Выполнить)
РанееОплаченныеПериоды = Запрос.Выполнить().Выгрузить();
по причине:
{(19, 24)}: Таблица не найдена "ПолученияПериодическихДанныхСотрудников"
Внутреннее СОЕДИНЕНИЕ <<?>>ПолученияПериодическихДанныхСотрудников КАК СотрудникиПериоды 

Причина Ошибки 10207110
Функция ФильтрСписокЗначенийПоТаблицеЗначений(ТаблицаФильтра, ОписаниеФильтра)    
    Если ОписаниеФильтра.ИзмеренияФильтра.Количество() > 1 Тогда
        Возврат Неопределено;
    ИначеЕсли ТаблицаФильтра.Количество() > 50 Тогда
        Возврат Неопределено;
    КонецЕсли;

Ilya-S-Zharskiy

https://raw.githubusercontent.com/ansible/ansible/devel/lib/ansible/modules/windows/win_psexec.ps1

$spec = @{
    options = @{
        command = @{ type='str'; required=$true }
        executable = @{ type='path'; default='psexec.exe' }
        hostnames = @{ type='list' }
        username = @{ type='str' }
        password = @{ type='str'; no_log=$true }
        chdir = @{ type='path' }
        wait = @{ type='bool'; default=$true }
        nobanner = @{ type='bool'; default=$false }
        noprofile = @{ type='bool'; default=$false }
        elevated = @{ type='bool'; default=$false }
        limited = @{ type='bool'; default=$false }
        system = @{ type='bool'; default=$false }
        interactive = @{ type='bool'; default=$false }
        session = @{ type='int' }
        priority = @{ type='str'; choices=@( 'background', 'low', 'belownormal', 'abovenormal', 'high', 'realtime' ) }
        timeout = @{ type='int' }
        extra_opts = @{ type='list' }
    }
}

$module = [Ansible.Basic.AnsibleModule]::Create($args, $spec)

$command = $module.Params.command
$executable = $module.Params.executable
$hostnames = $module.Params.hostnames
$username = $module.Params.username
$password = $module.Params.password
$chdir = $module.Params.chdir
$wait = $module.Params.wait
$nobanner = $module.Params.nobanner
$noprofile = $module.Params.noprofile
$elevated = $module.Params.elevated
$limited = $module.Params.limited
$system = $module.Params.system
$interactive = $module.Params.interactive
$session = $module.Params.session
$priority = $module.Params.Priority
$timeout = $module.Params.timeout
$extra_opts = $module.Params.extra_opts

$module.Result.changed = $true

If (-Not (Get-Command $executable -ErrorAction SilentlyContinue)) {
    $module.FailJson("Executable '$executable' was not found.")
}

$arguments = @()

If ($nobanner -eq $true) {
    $arguments += "-nobanner"
}

# Support running on local system if no hostname is specified
If ($hostnames) {
    $hostname_argument = ($hostnames | sort -Unique) -join ','
    $arguments += "\\$hostname_argument"
}

# Username is optional
If ($username -ne $null) {
    $arguments += "-u"
    $arguments += $username
}

# Password is optional
If ($password -ne $null) {
    $arguments += "-p"
    $arguments += $password
}

If ($chdir -ne $null) {
    $arguments += "-w"
    $arguments += $chdir
}

If ($wait -eq $false) {
    $arguments += "-d"
}

If ($noprofile -eq $true) {
    $arguments += "-e"
}

If ($elevated -eq $true) {
    $arguments += "-h"
}

If ($system -eq $true) {
    $arguments += "-s"
}

If ($interactive -eq $true) {
    $arguments += "-i"
    If ($session -ne $null) {
        $arguments += $session
    }
}

If ($limited -eq $true) {
    $arguments += "-l"
}

If ($priority -ne $null) {
    $arguments += "-$priority"
}

If ($timeout -ne $null) {
    $arguments += "-n"
    $arguments += $timeout
}

# Add additional advanced options
If ($extra_opts) {
    ForEach ($opt in $extra_opts) {
        $arguments += $opt
    }
}

$arguments += "-accepteula"

$argument_string = Argv-ToString -arguments $arguments

# Add the command at the end of the argument string, we don't want to escape
# that as psexec doesn't expect it to be one arg
$argument_string += " $command"

$start_datetime = [DateTime]::UtcNow
$module.Result.psexec_command = "$executable $argument_string"

$command_result = Run-Command -command "$executable $argument_string"

$end_datetime = [DateTime]::UtcNow

$module.Result.stdout = $command_result.stdout
$module.Result.stderr = $command_result.stderr

If ($wait -eq $true) {
    $module.Result.rc = $command_result.rc
} else {
    $module.Result.rc = 0
    $module.Result.pid = $command_result.rc
}

$module.Result.start = $start_datetime.ToString("yyyy-MM-dd hh:mm:ss.ffffff")
$module.Result.end = $end_datetime.ToString("yyyy-MM-dd hh:mm:ss.ffffff")
$module.Result.delta = $($end_datetime - $start_datetime).ToString("h\:mm\:ss\.ffffff")

$module.ExitJson()

Ilya-S-Zharskiy

The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7 dpkg-dev fakeroot g++ g++-7
  gcc gcc-7 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libatomic1
  libbinutils libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev libfakeroot
  libfile-fcntllock-perl libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2 libpython-all-dev
  libpython-dev libpython2.7-dev libquadmath0 libstdc++-7-dev libtsan0 libubsan0 linux-libc-dev make
  manpages-dev python-all python-all-dev python-dbus python-dev python-gi python-keyring
  python-keyrings.alt python-pip python-pip-whl python-secretstorage python-wheel python-xdg python2.7-dev
0 upgraded, 56 newly installed, 0 to remove and 55 not upgraded.
Need to get 68.0 MB of archives.
After this operation, 208 MB of additional disk space will be used.

/хороший пакетный менеджер
/и  зависимости интересные