File tree Expand file tree Collapse file tree 7 files changed +100
-8
lines changed Expand file tree Collapse file tree 7 files changed +100
-8
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ reinstall: uninstall install
3939
4040update :
4141 @echo " Update submodule..."
42- git submodule update --init --recursive --jobs=2
43- git submodule update --recursive --remote --jobs=2
42+ git submodule update --init --recursive
43+ git submodule update --recursive --remote
4444 @echo " Update: done"
4545
4646dist : clean
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set -euo pipefail
1111# // //
1212# // Script, 2021 //
1313# // Created: 21, June, 2021 //
14- # // Modified: 25 , July, 2021 //
14+ # // Modified: 31 , July, 2021 //
1515# // file: - //
1616# // - //
1717# // Source: //
@@ -27,8 +27,8 @@ elif (( $# == 1 )); then
2727elif (( $# == 2 )) ; then
2828 git diff " $1 " " $2 " -- > " $1 " -" $2 " .patch
2929else
30- echo " Usage: ${0##*/ } (patch HEAD)"
31- echo " Usage: ${0##*/ } <nbr from HEAD>"
32- echo " Usage: ${0##*/ } <tag or hash 1> <tag or hash 2>"
30+ echo " Usage: ${0##*/ } (create patch from HEAD)"
31+ echo " Usage: ${0##*/ } <nbr commit from HEAD>"
32+ echo " Usage: ${0##*/ } <tag1 or hash 1> <tag2 or hash 2>"
3333 exit 1
3434fi
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set -euo pipefail
1111# // //
1212# // Script, 2021 //
1313# // Created: 28, July, 2021 //
14- # // Modified: 28 , July, 2021 //
14+ # // Modified: 31 , July, 2021 //
1515# // file: - //
1616# // - //
1717# // Source: https://stackoverflow.com/a/42544963/10152334 //
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+ # //////////////////////////////////////////////////////////////
4+ # // ____ //
5+ # // | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
6+ # // | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
7+ # // | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
8+ # // |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
9+ # // |_| |_| //
10+ # //////////////////////////////////////////////////////////////
11+ # // //
12+ # // Script, 2021 //
13+ # // Created: 31, July, 2021 //
14+ # // Modified: 31, July, 2021 //
15+ # // file: - //
16+ # // - //
17+ # // Source: https://stackoverflow.com/a/29504397/10152334 //
18+ # // OS: ALL //
19+ # // CPU: ALL //
20+ # // //
21+ # //////////////////////////////////////////////////////////////
22+
23+
24+ type ffmpeg > /dev/null 2>&1 || { echo " ffmpeg could not be found" >&2 ; exit 1; }
25+
26+ if (( $# == 2 )) ; then
27+ ffmpeg -i " $1 " -i " $2 " -filter_complex " psnr" -f null /dev/null
28+ ffmpeg -i " $1 " -i " $2 " -filter_complex " ssim" -f null /dev/null
29+ else
30+ echo " Usage: ${0##*/ } <file 1> <file 2>"
31+ exit 1
32+ fi
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+ # //////////////////////////////////////////////////////////////
4+ # // ____ //
5+ # // | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
6+ # // | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
7+ # // | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
8+ # // |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
9+ # // |_| |_| //
10+ # //////////////////////////////////////////////////////////////
11+ # // //
12+ # // Script, 2021 //
13+ # // Created: 31, July, 2021 //
14+ # // Modified: 31, July, 2021 //
15+ # // file: - //
16+ # // - //
17+ # // Source: - //
18+ # // OS: ALL //
19+ # // CPU: ALL //
20+ # // //
21+ # //////////////////////////////////////////////////////////////
22+
23+
24+ type ffmpeg > /dev/null 2>&1 || { echo " ffmpeg could not be found" >&2 ; exit 1; }
25+
26+ if (( $# == 4 )) ; then
27+ ffmpeg -ss " $3 " -i " $1 " -to " $4 " -c copy -copyts " $2 "
28+ else
29+ echo " Usage: ${0##*/ } <input file> <output file> <start time (ex: 00:09:23 or 383)> <end time (Ex: 00:25:33 or 1533)>"
30+ exit 1
31+ fi
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+ # //////////////////////////////////////////////////////////////
4+ # // ____ //
5+ # // | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
6+ # // | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
7+ # // | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
8+ # // |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
9+ # // |_| |_| //
10+ # //////////////////////////////////////////////////////////////
11+ # // //
12+ # // Script, 2021 //
13+ # // Created: 31, July, 2021 //
14+ # // Modified: 31, July, 2021 //
15+ # // file: https://gist.github.com/jhamfler/cb21414d70696ba4a8957db80f186374 //
16+ # // - //
17+ # // Source: - //
18+ # // OS: ALL //
19+ # // CPU: ALL //
20+ # // //
21+ # //////////////////////////////////////////////////////////////
22+
23+ # --highlight-users
24+ if (( $# == 1 )) ; then
25+ gource --multi-sampling --output-framerate 60 --seconds-per-day 3.0 --auto-skip-seconds 0.2 ./ -1920x1080 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx265 -preset slow -pix_fmt yuv420p -crf 21 -bf 0 " $1 "
26+ else
27+ echo " Usage: ${0##*/ } <ouput file>"
28+ exit 1
29+ fi
You can’t perform that action at this time.
0 commit comments