This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cnt=$((1)) | |
listSrcFiles=$(find $orig_path$dir -maxdepth 1 -type f | grep -P -i -o "DSC\d{3,4}.jpg") | |
for file in $listSrcFiles; do | |
var=$(echo $file | grep -P -i -o "\d{3,4}") | |
var=$(($var-813)) | |
newVar=$(printf "%08d.jpg" $var) | |
echo $newVar | |
mv $file $newVar 2>/dev/null | |
cnt=$(($cnt+1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://dev.1c-bitrix.ru/community/webdev/user/107201/blog/6730/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fsutil file createnew C:\10mb-file.txt 10000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2499 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2499 | |
https://dev.1c-bitrix.ru/api_help/main/general/constants.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '<script>'; | |
echo 'console.log(' . json_encode($arResult) . ')'; | |
echo '</script>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
formData = new FormData($('form.filter').get(0)); | |
data = new URLSearchParams(formData).toString(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fileMake = CFile::MakeFileArray( | |
$_SERVER['DOCUMENT_ROOT'].'/upload/pdf/Счет компании '.$company_name.'от '.date('d.m.Y H:i').'.pdf', | |
false, | |
false, | |
'' | |
); | |
$fileSave = CFile::SaveFile( | |
$fileMake, | |
'/pdf', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Выборка разделов | |
https://estrin.pw/bitrix-d7-snippets/s/iblock-sectiontable/ | |
Выборка элементов |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!function_exists('console_log')) { | |
function console_log($data): void | |
{ | |
echo '<script>'; | |
echo 'console.log(' . json_encode($data) . ')'; | |
echo '</script>'; | |
} | |
} |
NewerOlder