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
<?php | |
/** | |
* check if user in department | |
* | |
* @param int $iUserID | |
* @param int $iDepartmentID | |
* @param bool $bCheckSubDepartments | |
* @return bool | |
*/ | |
function IsInDepartment($iUserID, $iDepartmentID, $bCheckSubDepartments = true) |
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
7za a -mx=9 -v100m site_name_excluded_upload_dir_date.7z /home/bitrix/www/ -x\!www/upload -x\!www/bitrix/backup |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
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
http { | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
proxy_temp_path /var/tmp; | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
gzip on; | |
gzip_comp_level 6; |
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
# guide https://www.nginx.com/blog/nginx-caching-guide/ | |
# document for variable http://nginx.org/en/docs/http/ngx_http_core_module.html#Variables | |
server { | |
... | |
location / { | |
# point is cookie name shouldn't contain - (hyphen), it cause wrong hash key. | |
# example $cookie_gist_var | |
proxy_cache_key $proxy_host$request_uri$cookie_{cookieNameShouldNotContainHyphen}; | |
... | |
} |