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
<?php | |
// https://stackoverflow.com/a/13101631 | |
$colorFormats = array( | |
// styles | |
// italic and blink may not work depending of your terminal | |
'bold' => "\033[1m%s\033[0m", | |
'dark' => "\033[2m%s\033[0m", | |
'italic' => "\033[3m%s\033[0m", |
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
$ more /usr/local/bin/video2gif.sh | |
#!/bin/bash | |
# https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/ | |
echo "Video file: " | |
read video_file | |
echo "Video start position (HH:MM:SS): " | |
read start_seek |
OlderNewer