A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
#!/bin/bash | |
######################################################################## | |
# gen_posters.sh - generate posters for plex video libraries | |
######################################################################## | |
# | |
# Grabs a frame from a video file and creates a scaled, cropped | |
# poster file in the same directory | |
# Creates poster file in 2:3 aspect ratio | |
# Works on mkv, mp4 and avi | |
# |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
func WithLimit(limit int) func(*Server) { | |
return func(s *Server) { | |
return s.setLimit(limit) | |
} | |
} | |
func NewServer(addr string, options ...func(*Server)) (*Server, error) { | |
l, err := net.Listen("tcp", addr) | |
if err != nil { | |
return nil, err |
Optional.ofNullable(product).map( | |
Product::getLatestVersion | |
).map( | |
ProductVersion::getProductData | |
).map( | |
ProductData::getTradeItem | |
).map( | |
TradeItemType::getInformationProviderOfTradeItem | |
).map( | |
PartyInRoleType::getGln |
package main | |
import ( | |
"fmt" | |
) | |
type Creator func() Plugin | |
type Plugin interface { | |
Pr() |
{ | |
"eztv": { | |
"name": "EZTV", | |
"url": "https://eztv.ag/search/{{query}}", | |
"list": "table tr.forum_header_border", | |
"result": { | |
"name": "td:nth-child(2) a", | |
"url": ["td:nth-child(2) a", "@href"], | |
"magnet": ["td:nth-child(3) a:nth-child(1)", "@href"], | |
"size": "td:nth-child(4)", |
BUILD = `git rev-parse HEAD` | |
LDFLAGS=-ldflags "-X 'main.schema=$(SCHEMA)' -X 'main.build=$(BUILD)'" | |
build: | |
go build -a $(LDFLAGS) -o ./build/server ./cmd/server |
screen -d -m /bin/bash 'name-of-executable > logfile.out 2>&1' |