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
[ | |
2000 => array ( | |
'CONDITION' => '#^/crm/type/#', | |
'RULE' => '', | |
'ID' => 'bitrix:crm.router', | |
'PATH' => '/crm/type/index.php', | |
'SORT' => 100, | |
), | |
2010 => array ( | |
'CONDITION' => '#^/crm/lead/#', |
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
# Show ACLs for "bitrix" directory | |
getfacl bitrix | |
# Remove all ACL for "bitrix" directory | |
setfacl -R -b bitrix | |
# Recursive modify ACL for directory "bitrix" | |
setfacl -R -m u::rwx,g::rwx,m::rwx,u:bitrix:rwx,g:bitrix:rwx,u:master:rwx bitrix | |
# Recursive modify default ACL for directory "bitrix" |
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
Add-VpnConnectionRoute -ConnectionName VPN_CONN_NAME_HERE -DestinationPrefix 10.0.0.0/24 –PassThru |
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 | |
PVE_NODES_FILE="/usr/share/perl5/PVE/API2/Nodes.pm" | |
PVE_TPL_FILE="/usr/share/pve-manager/index.html.tpl" | |
function installPackages() { | |
apt-get install -y wget lm-sensors | |
} | |
function injectNodes() { |
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 | |
putenv('BITRIX_VA_VER='.phpversion()); |
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
### MAIN DIFFERENCE WITH DEFAULT CONFIG ### | |
index index.php; | |
location / { | |
try_files $uri $uri/ /bitrix/routing_index.php?$args; | |
} | |
### FULL CONFIG SAMPLE BELOW ### |
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 | |
# Add user for gameap (raplace USERNAME with yours) | |
# | |
# useradd -m -U -G gap -s /bin/bash -d /srv/gameap/USERNAME USERNAME | |
# apt install members | |
PKG=members | |
PKG_STATUS="$(dpkg-query -W --showformat='${db:Status-Status}' "$PKG" 2>&1)" | |
if [ ! $? = 0 ] || [ ! "$PKG_STATUS" = installed ]; then |
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
Ext.define('PVE.node.StatusView', { | |
extend: 'Proxmox.panel.StatusView', | |
alias: 'widget.pveNodeStatus', | |
bodyPadding: '15 5 15 5', | |
layout: { | |
type: 'table', | |
columns: 2, | |
tableAttrs: { |
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
{ | |
"manufacturer":"Xiaomi", | |
"model":"Mi Robot Vacuum-Mop 2 Lite", | |
"modelId":"ijai.vacuum.v10", | |
"catalogId":-1, | |
"status":"development", | |
"services":[ | |
{ | |
"type":"BatteryService", | |
"logics":[ |
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 | |
//... | |
$APPLICATION->IncludeComponent( | |
'app:crm.company.widget', | |
'', | |
[ | |
'ACTIVE' => 'Y', | |
'COUNT' => 5, |
NewerOlder