| # check device present: adb devices -> 5203d550fe3ea3ab | |
| from time import clock, sleep | |
| from subprocess import check_output, call | |
| import re | |
| #call this to capture image | |
| def capture(): | |
| clock() | |
| screen_on() | |
| clear_camera_folder() |
Last updated: April 2021
Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22).
Depending on the age and/or popularity of the video, not all formats will be available.
| Resolution | AV1 HFR High | AV1 HFR | AV1 | VP9.2 HDR HFR | VP9 HFR | VP9 | H.264 HFR | H.264 |
|---|---|---|---|---|---|---|---|---|
| MP4 | MP4 | MP4 | WebM | WebM | WebM | MP4 | MP4 |
| Using curlftpfs and FUSE, a ftp site is mapped to the local file system and rsync will backup files to the ftp server automatically. | |
| 1. Install required packages | |
| apt-get install curlftpfs rsync | |
| 2. Create directory to mount the ftp site | |
| mkdir /mnt/ftpbackup |
| apk info | xargs -n1 -I{} apk info -s {} | xargs -n4 | awk '{print $4,$1}' | sort -rn |
Let's say you have a SysV Init Script named foo
-
Copy the file to
/etc/init.d/foo -
Enable the SysV service:
chkconfig --add foo -
Enable the SysV service:
chkconfig foo on -
Start the service:
service foo start. After this, systemd-sysv-generator will generate this file/run/systemd/generator.late/foo.service, copy this file to/etc/systemd/systemby running:cp /run/systemd/generator.late/foo.service /etc/systemd/system/foo.service -
Edit
/etc/systemd/system/foo.serviceby runningsystemctl edit foo.service, add in the following line tofoo.servie(this makes the service installable)
[Install]