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
| sudo apt install -y autoconf automake build-essential cmake git libass-dev libfreetype6-dev libgnutls28-dev libmp3lame-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget yasm zlib1g-dev nasm libx264-dev libx265-dev libnuma-dev libvpx-dev libfdk-aac-dev libopus-dev libdav1d-dev libv4l-dev libv4l-0 libxml2-dev libssl-dev libass-dev libfreetype6-dev libvorbis-dev libvpx-dev libdav1d-dev libx264-dev libx265-dev libmp3lame-dev libopus-dev libfdk-aac-dev | |
| git clone --branch release/8.0 --depth 1 https://git.ffmpeg.org/ffmpeg.git ffmpeg-8.0 | |
| cd ffmpeg-8.0/ | |
| ./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libdav1d --enable-libass --enable-libfreetype --enable-libvorbis --enable-libv4l2 --enable-version3 --enable-avfilter --enable-pthreads --enable-encoder=libx265 --enable-decoder=hevc --enable-parser=hevc --enable-demuxer=flv --e |
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 | |
| # Папка для генерации | |
| OUTPUT_DIR="docker-compose_projects" | |
| mkdir -p $OUTPUT_DIR | |
| # Собираем все контейнеры | |
| docker ps --format '{{.Names}}' | while read CONTAINER; do | |
| # Получаем проект из лейбла | |
| PROJECT=$(docker inspect --format='{{index .Config.Labels "com.docker.compose.project"}}' $CONTAINER) |
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') |