This file contains hidden or 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 | |
[[ -n "${1}" ]] || { echo "Usage: oicr.sh IA_BOOK_TITLE"; exit 0 ; } | |
# sample record ids: catalogueoflepid02briti electronicnaviga00unit halfhoursinfarno00newy nachrichtsblattd3234190012deut | |
BOOK=${1} | |
#BASEURL=http://cluster.biodiversitylibrary.org | |
BASEURL=http://www.archive.org/download |
This file contains hidden or 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 | |
DATE=`date +%Y%m%d` | |
TARGET_PATH=/home/phil/Dropbox/Public | |
WWW_USER=www-data | |
WWW_GROUP=www-data | |
WWW_PATH=/var/www/data | |
if [ ! -d ${WWW_PATH} ]; then | |
mkdir -p ${WWW_PATH} | |
chown -R ${WWW_USER}:${WWW_GROUP} ${WWW_PATH} |
This file contains hidden or 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 | |
# run R script in the current directory, capture start/end time, set perms for www view | |
# loop for a number of times, default 20, and then end. | |
if [ "$1" == "" ]; then | |
echo " [ FAILED ] need an R script name" | |
exit 1 | |
else | |
echo " [ OK ] R script name given" |
This file contains hidden or 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 | |
EXPECTED_ARGS=1 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage: `basename $0` MAC_ADDRESS" | |
exit 1 | |
fi |
This file contains hidden or 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 | |
############### | |
# about | |
############### | |
# bring in IA-like data, from TITLE_ID.files.xml | |
############### | |
# variables |
This file contains hidden or 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 | |
# Distributed under the terms of the BSD License | |
# Copyright (c) 2011 Phil Cryer [email protected] | |
# http://gist.github.com/843896 | |
# download, unzip and install the latest Chromium (Google Chrome Dev build) on OS X | |
# NOTICE: absolutely no returns without a receipt! No exceptions! | |
# is there a directory in tmp to do this? if not, make it | |
if [ ! -d '/tmp/chromedownload' ]; then |
This file contains hidden or 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 | |
[[ -n "$1" ]] || { echo "Usage: oicr.sh IA_BOOK_TITLE"; exit 0 ; } | |
# sample record ids: catalogueoflepid02briti electronicnaviga00unit halfhoursinfarno00newy nachrichtsblattd3234190012deut | |
BOOK=$1 | |
BASEURL=http://cluster.biodiversitylibrary.org/n | |
#BASEURL=http://www.archive.org/download |
This file contains hidden or 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 | |
# MEEGO 1.2 WIFI | |
# install Broadcom Wifi driver on Dell Mini9 in Meego 1.2 | |
# created from http://slaine.org/_slaine/Meego_1.2_Wifi.html | |
# thanks slaine.org | |
sudo zypper update | |
sudo zypper install rpmdevtools | |
sudo zypper install pattern:meego-development-tools |
This file contains hidden or 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/sh | |
# | |
# Logstash Start/Stop logstash | |
# | |
# chkconfig: 345 99 99 | |
# description: Logstash | |
# processname: logstash | |
logstash_bin="/usr/bin/java -jar /opt/logstash/logstash-1.0.17-monolithic.jar" | |
logstash_conf="/etc/logstash/shipper.conf" |
This file contains hidden or 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 | |
# | |
################################################################################ | |
# | |
# File : grabby.sh | |
# Usage : ./grabby.sh | |
# Author : [email protected] | |
# Date created : 2009-10-10 | |
# Last updated : 2012-04-10 | |
# Source : http://code.google.com/p/bhl-bits/utilities/grabby |
OlderNewer