pnpm add @capacitor/core @capacitor/cli
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
""" | |
Для работы с аудиофайлами рекомендую использовать ffmpeg | |
Скачать его для Windows: https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z | |
После скачивания распаковать в любую папу и записать путь до неё в переменную ffmpeg_path | |
Для использования распознавания текста используем vosk | |
Установка: pip install vosk | |
""" | |
import os # Для работы с файловой системой |
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
./configure \ | |
--prefix=/etc/nginx \ | |
--sbin-path=/usr/sbin/nginx \ | |
--modules-path=/usr/lib/nginx/modules \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--pid-path=/var/run/nginx.pid \ | |
--lock-path=/var/run/nginx.lock \ | |
--http-client-body-temp-path=/var/cache/nginx/client_temp \ |
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 | |
MIME_TYPES=$(wget -qO- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types | sed '/^#/d') | |
echo "types {" > ./mime.types; | |
echo "$MIME_TYPES" | while read -r line | |
do | |
TYPE=$(echo $line | awk '{print $1}') | |
EXTENSIONS=$(echo $line | cut -d' ' -f2-) | |
for EXT in $EXTENSIONS |
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 | |
# Получить последние IP-адреса Cloudflare | |
IPS_IPV4_CLOUDFLARE=$(curl https://www.cloudflare.com/ips-v4) | |
IPS_IPV6_CLOUDFLARE=$(curl https://www.cloudflare.com/ips-v6) | |
# Получить последние IP-адреса Google Cloud | |
IPS_IPV4_GOOGLECLOUD=$(curl https://www.gstatic.com/ipranges/cloud.json | jq -r '.prefixes[] | select(.ipv4Prefix) | .ipv4Prefix') | |
IPS_IPV6_GOOGLECLOUD=$(curl https://www.gstatic.com/ipranges/cloud.json | jq -r '.prefixes[] | select(.ipv6Prefix) | .ipv6Prefix') |