This file contains 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
FROM golang:1.10beta2 | |
ADD . /go/src/github.com/<user>/<repo> | |
WORKDIR /go/src/github.com/<user>/<repo> | |
RUN go test -coverpkg=all -coverprofile cover.out ./... |
This file contains 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
explain analyze select * from user_details where details -> 'info' ->> 'crop' = 'Corn' and details -> 'info' ->> 'farmSize' = '2-3' limit 50; | |
QUERY PLAN | | |
----------------------------------------------------------------------------------------------------------------------------------------------------------| | |
Limit (cost=1000.00..136551.01 rows=50 width=426) (actual time=3.764..4.346 rows=50 loops=1) | | |
-> Gather (cost=1000.00..255835.90 rows=94 width=426) (actual time=0.165..40.441 rows=50 loops=1) | | |
Workers Planned: 2 | | |
Workers Launched: 2 |
This file contains 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
#!/usr/bin/env zsh | |
# just for macOS | |
# | |
# The default options for installing ffmpeg and mpv via brew do not include the activation of libplacebo. | |
# As a result, when playing videos in Dolby Vision, the color mapping is not accurate. To resolve this issue, | |
# a script is used to compile ffmpeg with libplacebo activated, followed by the building of mpv. | |
# Extra: build mpv bundle, with jxl | |
if [ "$(uname -s)" != "Darwin" ]; then |
This file contains 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 | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 input_file" >&2 | |
exit 1 | |
fi | |
input_file="$1" | |
input_dir=$(dirname "$input_file") | |
input_base=$(basename "${input_file%.*}") |