Skip to content

Instantly share code, notes, and snippets.

View Autoplay Video on Raspberry Pi
#!/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 Mar 10, 2016 — forked from quinkennedy/openframe_install.sh
wget/curl-able installation script for Openframe
View openframe_install.sh
#!/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"
View transcode-video.sh
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 4.2 of November 12, 2014