Инструкция для 1С-Битрикс версии 20+ (без колонки ADMIN в b_user)
- Перенесли сайт на новый хостинг и не знаете пароль администратора
- Нужно создать нового администратора в обход веб-интерфейса
| G:\Soft\yt-dlp.exe --ffmpeg-location G:\Soft\ffmpeg\bin --write-subs --sub-lang ru --convert-subs srt -f "bv*+ba/b" -o "video.%(ext)s" https://www.youtube.com/watch?v=HK81_DP4U7Y ; G:\Soft\ffmpeg\bin\ffmpeg.exe -i video.mkv -vf subtitles=video.ru.srt out.mp4 |
| <# | |
| PowerShell script: disable-windows11-bloat.ps1 | |
| Purpose: to disable background services, updates, telemetry, and other non-essential Windows 11 components to reduce resource usage. | |
| WARNING: This makes the system vulnerable (no antivirus, no updates). Use only on controlled or offline servers. | |
| Creates registry backups and a log of actions in C:\Temp\win11_cleanup_backup_YYYYMMDD_HHMMSS | |
| #> | |
| # --- Language selection --- | |
| Write-Host "Select language / Выберите язык:" -ForegroundColor Cyan | |
| Write-Host "1 - English" -ForegroundColor Yellow |
| # 1. Включить удалённые подключения | |
| Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 0 | |
| # 2. Разрешить RDP через брандмауэр | |
| Enable-NetFirewallRule -DisplayGroup "Remote Desktop" | |
| # 3. (опционально) Включить службу RDP, если она выключена | |
| Set-Service -Name TermService -StartupType Automatic | |
| Start-Service -Name TermService |
| import requests | |
| from bs4 import BeautifulSoup | |
| import pandas as pd | |
| import os | |
| import argparse | |
| import re | |
| # CLI arguments | |
| parser = argparse.ArgumentParser(description="Check WordPress posts for keywords.") | |
| parser.add_argument("-w", "--whole", action="store_true", help="Match whole words only") |
| <?php | |
| /** | |
| * ⚠️ IMPORTANT! SECURITY WARNING! ⚠️ | |
| * DELETE THIS FILE FROM THE SERVER AFTER USE! | |
| * Leaving this script on the server poses a security risk, | |
| * as attackers can use it to create archives | |
| * containing sensitive data from your website. | |
| */ | |
| // Check if ZipArchive class is available |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| from PIL import Image | |
| import argparse | |
| from pathlib import Path | |
| import re |
| import requests | |
| from urllib.parse import urlparse | |
| from datetime import datetime | |
| from openpyxl import Workbook | |
| from openpyxl.styles import Font | |
| # — Function: date formatting | |
| def format_date(date_str): | |
| dt = datetime.fromisoformat(date_str.replace('Z', '+00:00')) | |
| return dt.strftime('%d.%m.%Y') |
| EN: | |
| =VALUE(SUBSTITUTE(IMPORTXML("https://coinmarketcap.com/currencies/toncoin/"; "//span[@data-test='text-cdp-price-display']"); "$"; "")) | |
| RU: | |
| =ЗНАЧЕН(ПОДСТАВИТЬ(ПОДСТАВИТЬ(IMPORTXML("https://coinmarketcap.com/currencies/toncoin/"; "//span[@data-test='text-cdp-price-display']"); "$"; ""); "."; ",")) |