Skip to content

Instantly share code, notes, and snippets.

#!/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=""
@jmwohl
jmwohl / openframe_install.sh
Last active March 10, 2016 16:22 — forked from quinkennedy/openframe_install.sh
wget/curl-able installation script for Openframe
#!/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"
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 4.2 of November 12, 2014