mpv --input-ipc-server=/tmp/mpvsocket "https://www.youtube.com/watch?v=GYE2P7BWBAs"echo '{ "command": ["set_property", "pause", true] }' | socat - /tmp/mpvsocketecho '{ "command": ["set_property", "pause", false] }' | socat - /tmp/mpvsocketecho "cycle pause" | socat - /tmp/mpvsocketlsblksfdisk -l /dev/sdasfdisk -F /dev/sdacfdisk /dev/sdaumount /dev/sda2sfdisk --dump /dev/sda > sda.dumpsudo sfdisk /dev/sda < sda.dumpecho ", +" | sudo sfdisk -N 2 /dev/sdasfdisk -V /dev/sdae2fsck -f /dev/sda2sudo resize2fs /dev/sda2e2fsck -f /dev/sda2 ; echo -e "label:dos\nstart=1M,bootable" | sudo sfdisk /dev/sdX; lsblk$ sudo du -mSx -t 1M / > 1.txt$ sudo du -mSx -t 1M / > 2.txt$ diff 1.txt 2.txtтакже файл "ffmpeg.exe"
$ sudo apt update
$ sudo apt install ffmpegв них установлен скрипт такого вида:
ffmpeg -i http://example.com/playlist.m3u8 -c copy 1.mp4
#!/usr/bin/env bash
ffmpeg -i "http://example.com/playlist.m3u8" -t "3:00:00" -c copy "1.mp4"$ chmod +x myscript.sh$ ./myscript.shCMainApplication::BInit - Unable to initialize Vulkan!
SDL_VIDEODRIVER=x11 steam GDM (optional, but useful)
if [[ -z $DISPLAY && $XDG_SESSION_TYPE == tty ]]; then
case "$(tty)" in
"/dev/tty1" ) # Sway wayland
QT_QPA_PLATFORM=wayland \
CLUTTER_BACKEND=wayland \
MOZ_ENABLE_WAYLAND=1 \
SDL_VIDEODRIVER=wayland \
XDG_SESSION_TYPE=wayland \
BEMENU_BACKEND=wayland \
XKB_DEFAULT_LAYOUT=us \
exec sway
;;
"/dev/tty2" ) # i3 X
startx /usr/bin/i3
;;
"/dev/tty3" ) # Gnome wayland
QT_QPA_PLATFORM=wayland \
CLUTTER_BACKEND=wayland \
MOZ_ENABLE_WAYLAND=1 \
SDL_VIDEODRIVER=wayland \
XDG_SESSION_TYPE=wayland \
exec dbus-run-session gnome-session
;;
esac
fils -1 |awk '{print $0,$0"_renamed"}' | xargs -n2 mvls -1 |awk '{print "\""$0"\" \""$0"_renamed\""}' | xargs -n2 mv PatchFirefox="$HOME/.mozilla/firefox"
PROFILE=$(cat $PatchFirefox/profiles.ini | awk -F= '$1 == "Default" {print $2}' | head -n 1)
PatchJson="$PatchFirefox/$PROFILE/sessionstore-backups/recovery.jsonlz4"
URL=$(lz4jsoncat "$PatchJson" | jq -r '.windows[].tabs[.windows[].selected -1].entries[.windows[].tabs[.windows[].selected -1].index -1].url')
if [[ "$URL" =~ ^"https://money.yandex." ]]; then
sleep 5
killall firefox
#код для работы с Chrome
fi:screenshot --fullpagefirefox --screenshot [url]#!/bin/sh
ehco "Оставь надежду, всяк сюда входящий"