Skip to content

Instantly share code, notes, and snippets.

View iTeeLion's full-sized avatar
😎
Coding...

Sergey Abu iTeeLion

😎
Coding...
View GitHub Profile
@iTeeLion
iTeeLion / bitrix24crm_urlwrite.php
Last active May 29, 2024 05:31
bitrix24crm_urlwrite.php
[
2000 => array (
'CONDITION' => '#^/crm/type/#',
'RULE' => '',
'ID' => 'bitrix:crm.router',
'PATH' => '/crm/type/index.php',
'SORT' => 100,
),
2010 => array (
'CONDITION' => '#^/crm/lead/#',
@iTeeLion
iTeeLion / ACL.sh
Created May 7, 2024 08:36
Linux ACL examples
# 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"
@iTeeLion
iTeeLion / vpn_route_add.bat
Created May 7, 2024 08:36
Dynamicly added route for VPN
Add-VpnConnectionRoute -ConnectionName VPN_CONN_NAME_HERE -DestinationPrefix 10.0.0.0/24 –PassThru
@iTeeLion
iTeeLion / pve_thermals_add.sh
Last active September 8, 2023 21:07
Add thermals information to your proxmox node summary panel
#!/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() {
@iTeeLion
iTeeLion / init.php
Created September 6, 2023 08:06
Bitrix24 enviroment warning bypass
<?php
putenv('BITRIX_VA_VER='.phpversion());
@iTeeLion
iTeeLion / ste.conf
Last active September 6, 2023 06:51
Fastpanel bitrix24 manual config
### MAIN DIFFERENCE WITH DEFAULT CONFIG ###
index index.php;
location / {
try_files $uri $uri/ /bitrix/routing_index.php?$args;
}
### FULL CONFIG SAMPLE BELOW ###
@iTeeLion
iTeeLion / permissions.sh
Last active September 28, 2023 17:15
gameap user permissions
#!/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
@iTeeLion
iTeeLion / pve_node_summary.js
Created July 7, 2023 20:20
pve_node_summary.js
Ext.define('PVE.node.StatusView', {
extend: 'Proxmox.panel.StatusView',
alias: 'widget.pveNodeStatus',
bodyPadding: '15 5 15 5',
layout: {
type: 'table',
columns: 2,
tableAttrs: {
@iTeeLion
iTeeLion / ijai.vacuum.v10.json
Created May 9, 2023 21:56
SprutHub Mi Robot Vacuum-Mop 2 Lite Template
{
"manufacturer":"Xiaomi",
"model":"Mi Robot Vacuum-Mop 2 Lite",
"modelId":"ijai.vacuum.v10",
"catalogId":-1,
"status":"development",
"services":[
{
"type":"BatteryService",
"logics":[
@iTeeLion
iTeeLion / test_task.php
Created February 21, 2023 13:51
/stream/index.php
<?php
//...
$APPLICATION->IncludeComponent(
'app:crm.company.widget',
'',
[
'ACTIVE' => 'Y',
'COUNT' => 5,