$ uname -r
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
# find yours usb drive in list. f.e. it was /dev/disk2 for me | |
diskutil list | |
# format your disk to Windows FAT32 format | |
sudo diskutil eraseDisk FAT32 "WIN10" MBRFormat /dev/disk2 | |
# open Finder and mount the Windows 10 ISO by doble click ISO file | |
# list /Volumes folder and find mounted folder. For me it was /Volumes/CCCOMA_X64FRE_RU-RU_DV9 | |
# copy small files by rsync |
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
$_SERVER["DOCUMENT_ROOT"] = '/home/bitrix/www'; | |
define("NO_KEEP_STATISTIC", true); | |
define("NO_AGENT_STATISTIC","Y"); | |
define("NO_AGENT_CHECK", true); | |
define("DisableEventsCheck", true); | |
define("NOT_CHECK_PERMISSIONS",true); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); |
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 ($bExcel) | |
{ | |
$APPLICATION->RestartBuffer(); | |
// hack. any '.default' customized template should contain 'excel' page | |
$this->__templateName = '.default'; | |
Header("Content-Type: application/force-download"); | |
Header("Content-Type: application/octet-stream"); | |
Header("Content-Type: application/download"); |
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
<? | |
/*+ Начало вывода данных +*/ | |
$arResult = array(); | |
/*+ Здесь будем кешировать данные +*/ | |
$cache = new CPHPCache(); | |
$cache_time = $arParams["CACHE_TIME"]; | |
$cache_id = md5('userTagsKey'); | |
$cache_path = '/userTags/'; |
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
<? | |
$cache_id = md5(serialize($arParams)); | |
$cache_dir = "/tagged_getlist"; | |
$obCache = new CPHPCache; | |
if($obCache->InitCache(36000, $cache_id, $cache_dir)) { | |
$arElements = $obCache->GetVars(); | |
} | |
elseif(CModule::IncludeModule("iblock") && $obCache->StartDataCache()) { | |
$arElements = array(); |