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 |
#All backups go to here automatically: | |
#/var/lib/vz/dump | |
#install rclone if uninstalled or update available | |
#downloads page is http://rclone.org/downloads/ | |
wget http://downloads.rclone.org/rclone-current-linux-amd64.zip | |
# version on webpage is http://downloads.rclone.org/rclone-v1.33-linux-amd64.zip | |
# from: http://blog.mattwynne.net/2008/04/26/fetch-and-parse-html-web-page-content-from-bash-wow/ | |
# Download ZIP, keep zip in working folder, check future runs against HTML piped through w3c for newer versions | |
# from: http://tips.webdesign10.com/scrape-web-pages-gnu-linux-shell: |
#!/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. | |
##################################################################### |