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 | |
# Add this to a file, e.g. video-autoplay.sh, and then source it from .bashrc | |
# If n has been pressed, don't autoplay | |
read -t 1 -n 1 key | |
if [[ $key = n ]] | |
then | |
echo "no video" | |
else | |
# hide the prompt: | |
PS1="" |
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 bash | |
{ # this ensures the entire script is downloaded # | |
openframe_has() { | |
type "$1" > /dev/null 2>&1 | |
} | |
if [ -z "$OPENFRAME_DIR" ]; then | |
OPENFRAME_DIR="$HOME/.openframe" |
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 | |
# | |
# transcode-video.sh | |
# | |
# Copyright (c) 2013-2014 Don Melton | |
# | |
about() { | |
cat <<EOF | |
$program 4.2 of November 12, 2014 |