Skip to content

Instantly share code, notes, and snippets.

View ggrachdev's full-sized avatar

ggrachdev

  • BystroBank
View GitHub Profile
@ggrachdev
ggrachdev / list-of-curl-options.txt
Created August 23, 2023 09:34 — forked from eneko/list-of-curl-options.txt
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@ggrachdev
ggrachdev / getArrayOriginalProperties.php
Last active April 7, 2021 07:08
Bitrix получить данные всех полей элемента, которые скушает CIBlockElement::Update
<?php
/**
* Получить полный массив свойств элемента валидный для функции CElement Update
*
* @param int $elemId
* @param int $iblockId
* @return array
*/
function getArrayOriginalProperties(int $elemId, int $iblockId): array {