← All posts tagged code

code apt-get Key-is-stored-in-legacy-trusted.gpg-keyring apt-key-is-deprecated. Manage-keyring-files-in-trusted.gpg.d-instead apt-update

The instructions given in Ugo Delle Donne's answer for converting the key to the (legacy) keyring v4 format that apt will accept are correct and helpful, but that's only half of the solution. I'll reiterate them here (cleaned up slightly) so all the steps are consolidated in one place:

    Download the key:
        wget https://host.domain.tld/path/to/<keyfile>.<ext>
        (No need for -O or >; wget defaults to saving the file in your current directory with the same filename it has on the server.)
    Verify that the filetype is "PGP public key block Public-Key (old)":
        file <keyfile>.<ext>
    gpg supports a number of key formats, so if your key is in a different format, convert it by importing it into a temp keyring, then exporting it again:
        gpg --no-default-keyring --keyring ./temp-keyring.gpg --import <keyfile>.<ext>
        gpg --no-default-keyring --keyring ./temp-keyring.gpg --export --output <your-keyfile-name>.gpg
        rm temp-keyring.gpg

Now that you have your converted key, do not add it to apt's trusted keystore by copying it into /etc/apt/trusted.gpg.d/. Instead, put it somewhere like /etc/apt/keyrings/. (You might need to create that keyrings directory first.) There's nothing special about that location, it's just a convention recommended by man 5 sources.list in Ubuntu 22.04 and a related Debian Wiki entry.

At this point, nothing has changed and apt doesn't know the key exists. The last step is to modify the specific .list file for the repository to tell apt where to find the key for that specific repo.

    Edit the file /etc/apt/sources.list.d/<example>.list, and in between deb and the url, add [signed-by=/etc/apt/keyrings/<your-keyfile-name>.gpg]

Now apt will accept that key's signature for all packages in that repo and only that repo.


    If you already have keyring files in /etc/apt/trusted.gpg.d/, you can copy move them to /etc/apt/keyrings/ as-is, and then update all the corresponding .list files so each one has a signed-by field pointing to its own key.
    If you already have keys in the /etc/apt/trusted.gpg keyring file beyond the official repo keys, this answer details the steps to locate and remove them. You can then follow all the same steps above to set them up the safer way. (Exporting them from that keyring is also possible, but the exact steps are left as an exercise for the reader.)
    To import a repo's key from a keyserver to a standalone file:
        gpg --no-default-keyring --keyring <output-file-name>.gpg --keyserver <some.keyserver.uri> --recv-keys <fingerprint>
        This should give you a key that apt will accept without conversion.
    Apt is still very trusting, and a malicious or compromised repo can bypass this measure easily because packages currently can run arbitrary shell code as root in their setup scripts. Closing off one attack vector doesn't hurt, though, and progress is (slowly) being made on other fronts.
    Optionally, you can switch to the newer, more verbose Deb822 format using individual .sources files instead of .list files. It's more work, but personally I find the result far more readable.

code VK yt-dlp

    def _perform_login(self, username, password):
        login_page, url_handle = self._download_webpage_handle(
            'https://vk.com', None, 'Downloading login page')

        login_form = self._hidden_inputs(login_page)

            'email': username.encode('cp1251'),
            'pass': password.encode('cp1251'),

        # vk serves two same remixlhk cookies in Set-Cookie header and expects
        # first one to be actually set
        self._apply_first_set_cookie_header(url_handle, 'remixlhk')

        login_page = self._download_webpage(
            'https://vk.com/login', None,
            note='Logging in',

        if re.search(r'onLoginFailed', login_page):
            raise ExtractorError(
                'Unable to login, incorrect username and/or password', expected=True)

    def _download_payload(self, path, video_id, data, fatal=True):
        url = 'https://vk.com/%s.php' % path
        data['al'] = 1
        code, payload = self._download_json(
            data=urlencode_postdata(data), fatal=fatal,
                'Referer': url,
                'X-Requested-With': 'XMLHttpRequest'
        if code == '3':
        elif code == '8':
            raise ExtractorError(clean_html(payload[0][1:-1]), expected=True)
        return payload
PS V:\> yt-dlp.exe https://vk.com/video-56772707_456249513
[vk] -56772707_456249513: Downloading JSON metadata
[vk] -56772707_456249513: Downloading m3u8 information
[info] -56772707_456249513: Downloading 1 format(s): hls-25903
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 581
[download] Destination: Clara Mia and Sylvia Buntarka - Wunf 35 секс porno blowjob sperm отсосы минет сперм
а кончил в рот загорелой с красивыми сиськами [-56772707_456249513].mp4
[download]  57.8% of ~17.44GiB at 584.59KiB/s ETA 01:08:17 (frag 336/581)ERROR: unable to download video da
ta: [Errno 28] No space left on device
torrent code ReScene SRR

PS C:\Users\inetuser> choco install -y --version=4.20.0 winrar
Chocolatey v0.10.15                                                                                                                                                                                                                   
Installing the following packages:
By installing you accept licenses for the packages.

winrar v4.20.0 [Approved]                                                                                                                                                                                                             
winrar package files install completed. Performing other installation steps.
WARNING: Url has SSL/TLS available, switching to HTTPS for download                                                                                                                                                                   
Downloading winrar 64 bit
  from 'https://www.rarlab.com/rar/winrar-x64-420.exe'
Progress: 100% - Completed download of C:\Users\inetuser\AppData\Local\Temp\chocolatey\winrar\4.20.0\winrar-x64-420.exe (1.58 MB).
Download of winrar-x64-420.exe (1.58 MB) completed.
Installing winrar...
winrar has been installed.
 The install of winrar was successful.                                                                                                                                                                                                
  Software installed as 'exe', install location is likely default.                                                                                                                                                                    

Chocolatey installed 1/1 packages.                                                                                                                                                                                                    
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).                                                                                                                                                             

srrGUI: srr.exe P:\_movies\The.Matrix.Resurrections.2021.HDR.2160p.WEB.H265-PECULATE.srr -ypri N:\_movies\The.Matrix.Resurrections.2021.HDR.2160p.WEB.H265-PECULATE\ -o P:\_movies\The.Matrix.Resurrections.2021.HDR.2160p.WEB.H265-PECULATE\
srrGUI: Process running, please wait...
SRR file created with pyReScene Auto 0.7.
Re-creating stored file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.nfo
Re-creating stored file: Sample/the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate-sample.srs
Re-creating stored file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.sfv
Re-creating RAR file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.rar
Re-creating RAR file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.r00
Re-creating RAR file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.r01
Re-creating RAR file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.r02
Re-creating RAR file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.r39
Re-creating RAR file: the.matrix.resurrections.2021.hdr.2160p.web.h265-peculate.r40
srrGUI: Process completed. srr.exe exit code = 0
code оракля найди_полтора_отличия sendmail.sendmail very-widely-used-Mail-Transport-Agent заебали_своим_PERLом!

sendmail-8.14.7-5.el7.x86_64 : A widely used Mail Transport Agent (MTA)
Repo        : ol7_latest
Matched from:
Filename    : /usr/sbin/sendmail.sendmail

sendmail-8.14.7-6.el7.x86_64 : A widely used Mail Transport Agent (MTA)
Repo        : ol7_latest
Matched from:
Filename    : /usr/sbin/sendmail.sendmail

sendmail-8.14.7-6.el7.x86_64 : A widely used Mail Transport Agent (MTA)
Repo        : @ol7_latest
Matched from:
Filename    : /usr/sbin/sendmail.sendmail
code Win10

File:	ru-ru_windows_10_consumer_editions_version_21h1_updated_aug_2021_x64_dvd_48cd4bd6.iso
Family:	Operating Systems
Version:	Windows 10, version 21H1 (Updated Aug 2021)
Language:	Russian - (RU)
CRC-32:	31ade57f
MD5:	32c5d0e88b26535cc4c77176270b93f7
SHA-1:	880f9fef147e1d648e50c114545c2b18753d0b8b
SHA-256:	46bd0b82a5e0005c10bdad8aa73d5c2e87a179ea4d2f027dfc974743660b1764
SHA-512:	99cc16ddaefdc5b66c1cca2da74c547a5b24d6b809f5929bec7e579557ca0a6dd170032f3145aa1fc695209b1c5ef11e563bbe4c52f5e374763ac027c165f706
SHA3-256:	93cad4c9b43fef8a73a533289578631e6e79f16f747526d550cf53b705c4b5fc
SHA3-512:	3c2974a69468e463fa88df98335473eeb40f3403eacacaf8f769f1a053b958d952cd97a8845cbdd57a0381caac05fe147325c017d0a87c5003761836c94aff87
Size:	5.178 GB (5560305664 bytes)

code XAMPP WAMPServer
local devstack

choco upgrade -y nginx mysql php
Chocolatey v0.10.15
2 validations performed. 1 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
     choco feature enable -name=exitOnRebootDetected
   or pass the option --exit-when-reboot-detected.

Upgrading the following packages:
By upgrading you accept licenses for the packages.                                                                                                                                                                                       
nginx is not installed. Installing...
Progress: Downloading NSSM 100%
Progress: Downloading NSSM 100%
Progress: Downloading nginx 1.21.1... 100%
Progress: Downloading nginx 1.21.1... 100%

NSSM v2.24.101.20180116 [Approved]
nssm package files upgrade completed. Performing other installation steps.
Installing 64 bit version
Extracting C:\ProgramData\chocolatey\lib\NSSM\tools\nssm-2.24-101-g897c7ad.zip to C:\ProgramData\chocolatey\lib\NSSM\tools...
 ShimGen has successfully created a shim for nssm.exe
 The upgrade of nssm was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\NSSM\tools'

nginx v1.21.1 [Approved]
nginx package files upgrade completed. Performing other installation steps.
Progress: 100% - Выполнено 1/1                                                                                                                                                                                                          E
xtracting C:\ProgramData\chocolatey\lib\nginx\tools\nginx-1.21.1.zip to C:\tools...
Shutting down Nginx if it is running

Only an exit code of non-zero will fail the package by default. Set 
 `--failonstderr` if you want error messages to also fail a script. See
 `choco -h` for details.
 The upgrade of nginx was successful.
  Software installed to 'C:\tools'
mysql is not installed. Installing...
Progress: Downloading mysql 8.0.26... 100%
Progress: Downloading mysql 8.0.26... 100%
Progress: Downloading mysql 8.0.26... 100%

mysql v8.0.26 [Approved]
mysql package files upgrade completed. Performing other installation steps.
Adding 'C:\tools\mysql\current\bin' to the path and the current shell path
PATH environment variable does not have C:\tools\mysql\current\bin in it. Adding...
Downloading mysql 64 bit
  from 'https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.26-winx64.zip'
Progress: 100% - Completed download of V:\Temp\mysql\8.0.26\mysql-8.0.26-winx64.zip (208.23 MB).
Download of mysql-8.0.26-winx64.zip (208.23 MB) completed.
Extracting V:\Temp\mysql\8.0.26\mysql-8.0.26-winx64.zip to C:\tools\mysql...
Shutting down MySQL if it is running

 The upgrade of php was successful.
  Software installed to 'C:\tools\php80'

Chocolatey upgraded 4/4 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Ubuntu KVM code qemu libvirt
root@userpc101:~# qemu-system-x86_64 --version
QEMU emulator version 5.0.0 (Debian 1:5.0-5ubuntu6~ppa0)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers

root@userpc101:~# uname -a
Linux userpc101 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

root@userpc101:~# cat /etc/lsb-release 
code библиотека флибуста пиздарики

    Warning: mysqli::mysqli(): (HY000/2003): Can't connect to MySQL server on 'www' (111) in SphinxSearchBaseDAO->executeQuery() (line 124 of /www/lib/pressflow/modules/librusec/classes/search/SphinxSearchBaseDAO.php).
    Warning: mysqli::mysqli(): (HY000/2003): Can't connect to MySQL server on 'www' (111) in SphinxSearchBaseDAO->executeQuery() (line 124 of /www/lib/pressflow/modules/librusec/classes/search/SphinxSearchBaseDAO.php).
    Warning: mysqli::mysqli(): (HY000/2003): Can't connect to MySQL server on 'www' (111) in SphinxSearchBaseDAO->executeQuery() (line 124 of /www/lib/pressflow/modules/librusec/classes/search/SphinxSearchBaseDAO.php).
Fedora code динамические_диски как_монтировать разделы_винды LDM /dev/mapper Spanned-disks fuseblk LDM-data-partition ldmtool libldm

$ sudo dnf install -y  libldm
Last metadata expiration check: 0:23:31 ago on Tue 08 Sep 2020 04:37:43 PM MSK.
Package libldm-0.2.4-6.fc32.x86_64 is already installed.

$ sudo ldmtool create all
Unable to create volume Volume9 in disk group f8553bf7-3c47-11ea-9a1c-049226d30b69: ldm_vol_SERVERNAME-Dg0_Volume9: Stacking NODE_DEL [verify_udev]
Unable to create volume Volume10 in disk group f8553bf7-3c47-11ea-9a1c-049226d30b69: ldm_vol_SERVERNAME-Dg0_Volume10: Stacking NODE_DEL [verify_udev]
Unable to create volume Volume8 in disk group f8553bf7-3c47-11ea-9a1c-049226d30b69: ldm_vol_SERVERNAME-Dg0_Volume8: Stacking NODE_DEL [verify_udev]

$ sudo ldmtool scan

$ sudo blkid

/dev/sda1: PARTLABEL="LDM metadata partition" PARTUUID="c138b583-404a-11e9-9975-7085c22fc281"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="bc35c9f4-184b-4718-afc2-539a91e5ab2f"
/dev/sda3: PARTLABEL="LDM data partition" PARTUUID="c138b586-404a-11e9-9975-7085c22fc281"

/dev/mapper/ldm_vol_SERVERNAME-Dg0_Volume5: LABEL="3TB2019" BLOCK_SIZE="512" UUID="D094F8E194F8CACC" TYPE="ntfs"

$ sudo mount

mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/ldm_vol_SERVERNAME-Dg0_Volume5 on /run/media/i/3TB2019 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)






code eMule ed2k eDonkey2000 server.met
code VPN l2tp ipsec
error unable to load vpn connection editor 

 Package                                Architecture        Version                              Repository           Size
 NetworkManager-l2tp                    x86_64              1.8.2-1.el8                          epel                173 k
 NetworkManager-l2tp-gnome              x86_64              1.8.2-1.el8                          epel                 54 k
code ping fping vaping smokeping
λ C:\tools\fping\Fping.exe ya.ru -T -D  -t 9999 -s 1 -c

Fast pinger version 3.00
(c) Wouter Dhondt (http://www.kwakkelflap.com)

Pinging ya.ru [] with 1 bytes of data every 9999 ms:

2020/01/08 21:12:30.933 : Reply[1] from ya.ru: bytes=1 time=69.0 ms TTL=246
2020/01/08 21:12:40.972 : Reply[2] from ya.ru: bytes=1 time=37.2 ms TTL=246
2020/01/08 21:12:51.012 : Reply[3] from ya.ru: bytes=1 time=38.9 ms TTL=246
2020/01/08 21:13:01.063 : Reply[4] from ya.ru: bytes=1 time=48.9 ms TTL=246
2020/01/08 21:13:11.133 : Reply[5] from ya.ru: bytes=1 time=68.1 ms TTL=246
2020/01/08 21:13:21.183 : Reply[6] from ya.ru: bytes=1 time=48.5 ms TTL=246
2020/01/08 21:13:31.222 : Reply[7] from ya.ru: bytes=1 time=37.6 ms TTL=246
2020/01/08 21:13:41.291 : Reply[8] from ya.ru: bytes=1 time=67.4 ms TTL=246
2020/01/08 21:13:51.344 : Reply[9] from ya.ru: bytes=1 time=51.2 ms TTL=246



torrent code warez wzor Windows10 Windows_10 Windows-10 MSDN-ISO скачать_Win10 VLSC WZT 1903-19H1-V2
ну шо, свежая винда шоле?
1903 19H1 V2





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
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.

code ЗУП 1ass полученияпериодическихданныхсотрудников Начисление_за_первую_половину_месяца
*ЗУП *code

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

Причина Ошибки 10207110
Функция ФильтрСписокЗначенийПоТаблицеЗначений(ТаблицаФильтра, ОписаниеФильтра)    
    Если ОписаниеФильтра.ИзмеренияФильтра.Количество() > 1 Тогда
        Возврат Неопределено;
    ИначеЕсли ТаблицаФильтра.Количество() > 50 Тогда
        Возврат Неопределено;
LOL code psexec ansible Powershell.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")