local device_id: 6Q5DZNK-OUR81B9-7XVBNEW-G98K9LW-E7ZI313-MSF2DZJ-YU0POJ9-N4FGYV9
remote device_id: N098QOW-3F17I07-NJ7LT0T-PC5YC33-ULTQJZD-JTMVKP1-8A283AM-DD79XNL
This file contains hidden or 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
<Macro pub1C $dir> | |
Alias "/$dir" "/var/www/$dir/" | |
<Directory "/var/www/$dir"> | |
AllowOverride All | |
Options None | |
Require all granted | |
SetHandler 1c-application | |
ManagedApplicationDescriptor "/var/www/$dir/default.vrd" | |
</Directory> | |
</Macro> |
This file contains hidden or 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
flags=$(cat /proc/cpuinfo | grep flags | head -n 1 | cut -d: -f2) | |
supports_v2='awk "/cx16/&&/lahf/&&/popcnt/&&/sse4_1/&&/sse4_2/&&/ssse3/ {found=1} END {exit !found}"' | |
supports_v3='awk "/avx/&&/avx2/&&/bmi1/&&/bmi2/&&/f16c/&&/fma/&&/abm/&&/movbe/&&/xsave/ {found=1} END {exit !found}"' | |
supports_v4='awk "/avx512f/&&/avx512bw/&&/avx512cd/&&/avx512dq/&&/avx512vl/ {found=1} END {exit !found}"' | |
echo "$flags" | eval $supports_v2 || exit 2 && echo "CPU supports x86-64-v2" | |
echo "$flags" | eval $supports_v3 || exit 3 && echo "CPU supports x86-64-v3" | |
echo "$flags" | eval $supports_v4 || exit 4 && echo "CPU supports x86-64-v4" |
This file contains hidden or 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
Alias "/testcors" "${SRVROOT}/htdocs/testcors/" | |
<Directory "${SRVROOT}/htdocs/testcors/"> | |
AllowOverride All | |
Options None | |
Require all granted | |
SetHandler 1c-application | |
ManagedApplicationDescriptor "${SRVROOT}/htdocs/testcors/default.vrd" | |
Options +FollowSymLinks | |
Header always set Access-Control-Allow-Origin * |
This file contains hidden or 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
# 1c publication using macro | |
<Macro pub1C $dir> | |
Alias "/$dir/" "C:/Program Files/Apache24/htdocs/$dir/" | |
<Directory "C:/Program Files/Apache24/htdocs/$dir"> | |
AllowOverride All | |
Options None | |
Require all granted | |
SetHandler 1c-application | |
ManagedApplicationDescriptor "C:/Program Files/Apache24/htdocs/$dir/default.vrd" | |
</Directory> |
This file contains hidden or 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
wget https://www.virtualhere.com/sites/default/files/usbclient/scripts/virtualhereclient.service | |
wget https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64 | |
chmod +x ./vhclientx86_64 | |
mv ./vhclientx86_64 /usr/sbin | |
mv virtualhereclient.service /etc/systemd/system/virtualhereclient.service | |
systemctl daemon-reload | |
systemctl enable virtualhereclient.service | |
systemctl start virtualhereclient.service |
This file contains hidden or 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 off & setlocal enableextensions | |
title Reset AnyDesk | |
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit) | |
chcp 437 | |
call :stop_any | |
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf" | |
del /f "%APPDATA%\AnyDesk\service.conf" | |
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\" | |
rd /s /q "%temp%\thumbnails" 2>NUL | |
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails" |
This file contains hidden or 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 | |
FIOTXT="${0/.sh/.fio}" | |
RESULTFILE_PATH="${0/.sh/.txt}" | |
TESTFILE_PATH="${0/.sh/.tmp}" | |
TESTFILE_SIZE="1000m" | |
TEST_LOOPS="5" | |
printline(){ | |
echo "$1" "$2" "$3" "$4" "$5" "$6" | |
echo "$1" "$2" "$3" "$4" "$5" "$6" >> $RESULTFILE_PATH |
This file contains hidden or 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 | |
# On FreeBSD change the above line to #!/usr/local/bin/bash | |
# | |
# /usr/local/bin/dhcp-dyndns.sh | |
# | |
# This script is for secure DDNS updates on Samba, | |
# it can also add the 'macAddress' to the Computers object. | |
# | |
# Version: 0.9.6 | |
# |
AD DC
#Поднятие дополнительного контроллера в существующем домене:
apt install acl attr samba winbind libpam-winbind libnss-winbind krb5-config krb5-user dnsutils python3-setproctitle -y
rm /etc/samba/smb.conf
kinit domaindaminuser
samba-tool domain join domain.local DC
#Все пользователи:
wbinfo -u