Skip to content

Instantly share code, notes, and snippets.

YarikST

Block or report user

Report or block YarikST

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dynamic priority
CREATE TEMP TABLE task
as
select *
from (
VALUES
(1 :: int, 'Xліб' :: VARCHAR),
(2 :: int, 'Xліб' :: VARCHAR),
(3 :: int, 'Xліб' :: VARCHAR),
(4 :: int, 'Вино' :: VARCHAR),
(5 :: int, 'Вино' :: VARCHAR),
View Redis
#https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
#https://www.linode.com/docs/databases/redis/how-to-install-a-redis-server-on-ubuntu-or-debian8/
#https://aws-labs.com/configure-redis-cluster-ubuntu-14-04/
sudo apt-get update
sudo apt-get install build-essential tcl
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make
View Linux file information
# mediainfo
#http://manpages.ubuntu.com/manpages/bionic/man1/mediainfo.1.html
# mediainfo --help
# mediainfo --Info-Parameters
.get the duration of video stream:
mediainfo --Inform="Video;%Duration%" [inputfile]
.get the duration of video stream as text:
mediainfo --Inform="Video;%Duration/String3%" [inputfile]
.get the duration of the media file:
mediainfo --Inform="General;%Duration%" [inputfile]
You can’t perform that action at this time.