save_and_open_page
have_button(locator)
#!/bin/bash | |
# Setting up backup directories | |
SUBDIR=RaspberryPi2_backups | |
DIR=/media/1TB/$SUBDIR | |
# Setting up echo fonts | |
red='\e[0;31m' | |
green='\e[0;32m' | |
cyan='\e[0;36m' |
#!/bin/bash | |
#Copied from wintermute at http://forum.subsonic.org/forum/viewtopic.php?t=1546 | |
#and adjusted to be more genaric and capable of being quickly adapted for multiple programs | |
#Haven't actually tested this yet though... 5/1/2014 | |
PROGRAM= | |
PID="" | |
PATH= | |
function get_pid { | |
PID=`ps ax |grep java |grep $PROGRAM |cut -d " " -f 1` |
#!/bin/bash | |
## Author: RonB123123 | |
## Created: Sept 24, 2008 | |
## Description: | |
## Checks if the MySQL + Apache services are running, if not | |
## not then start each service. | |
##From http://ubuntuforums.org/showthread.php?t=928475 | |
echo "Options" |
#!/bin/bash | |
## Author: RonB123123 | |
## Created: Sept 24, 2008 | |
## Description: | |
## Checks if the MySQL + Apache services are running, if not | |
## not then start each service. | |
##From http://ubuntuforums.org/showthread.php?t=928475 | |
echo "Options" | |
echo "1 - Start" |
#!/bin/bash | |
## Original Author: RonB123123 | |
## Created: Sept 24, 2008 | |
## From http://ubuntuforums.org/showthread.php?t=928475 | |
## Also includes some code from various other sources | |
## Changed by Nathan Darnell | |
## Adapted by me to work on my RPi systems and be more flexible | |
## Comments welcome as I am more of a Google-r than a programmer | |
## TODO: save to a logfile, change to all functions, |
CROSS COMPILING FFMPEG FOR THE RASPBERRY PI | |
This is how to cross compile ffmpeg with x264 support for the Raspberry Pi on a Debian 6 64bit host. | |
Build environment | |
First set up your build environment by installing the build-essential and git packages from the Debian repo and cloning the debian cross compiling toolchain from GitHub: | |
$ sudo apt-get install build-essential git-core | |
$ sudo git clone https://github.com/raspberrypi/tools.git /opt/tools |
#!/usr/bin/env python | |
# This example demonstrates RSA public-key cryptography in an | |
# easy-to-follow manner. It works on integers alone, and uses much smaller numbers | |
# for the sake of clarity. | |
##################################################################### | |
# First we pick our primes. These will determine our keys. | |
##################################################################### |
#include <Arduino.h> | |
#define BUTTON_COUNT 36 | |
#define KEYPAD_OUTPUT_BEGIN 2 | |
#define KEYPAD_OUTPUT_END 7 | |
#define KEYPAD_INPUT_BEGIN 8 | |
#define KEYPAD_INPUT_END 13 | |