archiver2.sh
for file in *
do
if [ ! -f "$file" ]
then
file=$defaultdir/$file
[ -f "$file" ] || continue
fi
case $file in
*.tar.gz)
date +%D > "$file"_date.out;
convert -size 320x100 xc:transparent -font /usr/share/fonts/truetype/freefont/FreeSansBold.ttf -pointsize 24 \
-fill white -rotate 360 -annotate +24+64 `echo "$file"` \
-fill black -rotate 360 -annotate +26+66 `echo "$file"` \
-fill gray -rotate 360 -annotate +25+65 `echo "$file"` \
-trim +repage "$file"_title.png ;
build_rpm.sh
#!/bin/bash
# script to interactively generate a SPEC file
# for building an RPM
#
# William Kennedy
# Tue May 15 15:29:50 CDT 2007
##############################################
if [ -z $1 ]
then
echo "Usage: $0 package_name"
echo "This utility will create an RPM spec file used for building a package."
exit 1
else
clear
PACKAGENAME="$1"
SPECFILE=$1.spec
if [ -f $SPECFILE ]
then rm $SPECFILE
echo "removed old specfile."
change_kern_syms_to_match.sh
#! /bin/bash
# To make this file executable: chmod +x fixscript
# This is a very slight edit of the ltfixscript contributed to
# the Linmodems Newslist
# From - Sun Jul 23 04:27:38 2000
# From: "Mark Spieth"
# To:
# Subject: ltmodem symbols and version fixed
# Date: Sun, 23 Jul 2000 12:39:44 +1000
# Organization: Digivation Pty Ltd
echo "Fixscript V1.9"
OTHERMODULES=
while : ; do
case "$1" in
"-m" ) shift
if [ -f "$1" ] ; then
OTHERMODULES="$OTHERMODULES $1"
else
color-echo.sh
#!/bin/bash
#
# TITLE: color-echo.sh
# CREATED ON: Sun Sep 14 00:49:19 EDT 2008
# CREATED BY: itomato
#
###########################################
# DESCRIPTION
#
#
###########################################
aecho=`tput setf 1 ; echo -e "aecho \c" ; tput sgr0`
becho=`tput setf 2 ; echo -e "becho \c" ; tput sgr0`
cecho=`tput setf 3 ; echo -e "cecho \c" ; tput sgr0`
decho=`tput setf 4 ; echo -e "decho \c" ; tput sgr0`
eecho=`tput setf 5 ; echo -e "eecho \c" ; tput sgr0`
fecho=`tput setf 6 ; echo -e "fecho \c" ; tput sgr0`
gecho=`tput setf 7 ; echo -e "gecho \c" ; tput sgr0`
hecho=`tput setf 8 ; echo -e "hecho \c" ; tput sgr0`
compositor.sh
for icon in ../48/*png
do
convert -combine $icon Tile.png "$icon"Tile.png
echo "converting '$icon'"
echo '
' >> itomatOSTiles.htm
done
craigslistquery.sh
#!/bin/bash
# Script to run query on craigslist for item
# specified on command line:
# 'sh craigslistquery.sh camaro'
#
# Returns results for todays date (can be modified to work on the hour)
TEMP=/tmp/craigslistquery-$1-`date +%N`
TODAY=`date +%b-%d`
RESULTS=$TEMP/results-$1-$TODAY
mkdir $TEMP
cd $TEMP
wget http://dallas.craigslist.org/search/car?query=$1
#html2text car\?query\=$1 > textoutput."$TODAY"
cp car\?query\=$1 output."$TODAY"
echo "Searching output.$TODAY for items from $TODAY."
echo "" > $RESULTS
grep $TODAY output.$TODAY >> $RESULTS
echo "Sending results to $2"
if_auto-si-image-grab.sh
#!/bin/bash
#
# SystemImager Client Automation script
#
# William Kennedy
#
#
# Mon Dec 29 12:18:34 MST 2008
#
##########################################
#set +vx
DATE=$(date +%Y%m%d)
CUSTCODE="TZ"
DATACENTER="WJ"
CONFFILE="/etc/systemimager/$DATACENTER-$CUSTCODE-ifox-dr.cfg"
# Start log
LOG="/var/log/systemimager/$DATACENTER-$CUSTCODE-systemimager-grab-$DATE.log"
if_auto-si-image-prep.sh
#!/bin/bash
#
# SystemImager Client Automation script
#
# William Kennedy
#
#
# Mon Dec 29 12:18:34 MST 2008
#
##########################################
DATE=$(date +%Y%m%d)
CONFFILE="/etc/systemimager/$HOSTNAME-ifox-dr.cfg"
set +x
# Start log
LOG="/var/log/systemimager/$HOSTNAME-systemimager-prep-$DATE.log"
# Clear the screen
clear
# Read config file
if_auto-si-image-roll.sh
#!/bin/bash
#
# SystemImager Client Automation script
#
# William Kennedy
#
#
# Sun Jan 4 15:11:23 MST 2009
#
##########################################
DATE=$(date +%Y%m%d)
CUSTCODE="TZ"
DATACENTER="WJ"
CONFFILE="/etc/systemimager/$DATACENTER-$CUSTCODE-ifox-dr.cfg"
# Start log
LOG="/var/log/systemimager/$DATACENTER-$CUSTCODE-systemimager-roll-$DATE.log"
# Read config file
if_auto-si-image-rsync.sh
s!/bin/bash
#
# SystemImager rsync Automation script
#
# William Kennedy
#
# Sat Jan 3 02:43:07 MST 2009
#
##########################################
DATE=$(date +%Y%m%d)
CONFFILE="/etc/systemimager/$HOSTNAME-ifox-dr-rsync.cfg"
# Start log
LOG="/var/log/systemimager/$HOSTNAME-systemimager-prep-$DATE.log"
#exec 2>1
# Clear the screen
clear
# Read config file
if_lun-scan.sh
#!/bin/bash
#
# TITLE: if_lun-scan.sh
# CREATED ON: Sun Sep 14 00:30:21 EDT 2008
# CREATED BY: William Kennedy
#
###########################################
# DESCRIPTION
# Script to scan and identify active and
# newly-presented LUNs on a Linux system
#
###########################################
#set -x
DATE=`date +%Y%m%d`
LOG="/tmp/$0.$DATE.log"
setterm -file=termdump
imagecatalog-html.sh
#!/bin/bash
#
# jpegmanipulator.sh
echo "working on JPEG images only"
set -x
#umask 022
mkdir IMG 2>/dev/null
mkdir DAT 2>/dev/null
mkdir TAG 2>/dev/null
mkdir FULL 2>/dev/null
# Check and create pattern matching file
if [ ! -f patterns ]
then
cat > patterns << EOF
Image
Format
kmlmaker.sh
#!/bin/bash
#
# kmlmaker
#
#
# Process input file and generate Google (TM) KML file from data
#
#######################
#set -x
# Set VARS
DATE=$(date +%Y%m%d)
OUTPUTFILE=MyNewKML-$DATE.$$.kml
INPUTFILE=$1
#######################
#######################
# Identify and process input files
if [ -z $1 ]
then
echo "Fail: No input file to process."
mountcount.sh
#!/bin/bash
# mount count
#
# Description:
# For option as $1, $0 will:
# - count mounted filesystems
# - report mounted filesystems
#
#
# Sun Sep 21 15:06:18 EDT 2008
#
################################
OPT="$1"
CNT=1
spin2(){
echo -en '\E[36;44m'
echo -ne '/\010' ; sleep 0.05
recreate_image_0.9.sh
#!/bin/bash
# OpenLPOS Live ISO recreation utility
# 01232008.wjk
#######################################
DIALOG="Xdialog"
LIVE_ROOT=.
LIVE_CHROOT=chroot
DATE=`date +%Y%m%d`
TIME=`date +%H%M`
OLPOS_VER="OLPOS-${DATE}-${TIME}"
VBOX_FILE="~/.VirtualBox/Machines/${OLPOS_VER}/${OLPOS_VER}.xml"
VBOX_DIR="~/.VirtualBox/Machines/${OLPOS_VER}"
NEW_ISO="/work/POS/OpenLPOS_i686-${DATE}-${TIME}.iso"
LOG="Recreate-OLPOS-ISO_i686-${DATE}-${TIME}.log"
touch ${LOG}
# Changes:
# 03-28-2008 wjk
# - Switched to VirtualBox from Qemu - see make_vboxvm()
# - Added timeouts to Xdialog boxes
script2html.sh
#!/bin/bash
#
# script2html
# pretty print scripts as html
#
###############################
spinner(){
PROC=$1
while [ -d /proc/$PROC ];do
echo -n '/' ; sleep 0.05
echo -n '-' ; sleep 0.05
echo -n '\' ; sleep 0.05
echo -n '|' ; sleep 0.05
echo -en '.....\c'
done
return 0
}
if [ -z $1 ]
si_initrdtools_0.2.sh
#!/bin/bash
# si_initrdtools
#
# A zenity/bash utility to manipulate a SystemImager initrd image
#
# Thu May 3 22:11:05 CDT 2007
# William J Kennedy
#
#
#############################################
#############################################
# BEGIN VARIABLES
VERSION="20080611"
GREET_STATEMENT="Systemimager initrd tools $VERSION"
GO_STATEMENT="Choose a SystemImager initrd to modify."
ALT_STATEMENT="Sure to quit?"
SELECT_FILE="Choose file to modify"
TMPDIR=/tmp/initrd_mount.$$
si_initrdtools-dialog_0.2.sh
#!/bin/bash
# si_initrdtools
#
# A dialog/bash utility to manipulate a SystemImager initrd image
# Sun Jun 15 01:00:26 CDT 2008
# William J Kennedy
#
#############################################
set -x
trap 'umount $TMPDIR/mount; $VIEWER $LOG; echo "INT caught"; rm *.$$; exit $USER_INTERRUPT' TERM INT
#############################################
# BEGIN VARIABLES
VERSION="20080615"
GREET_STATEMENT="Systemimager initrd tools $VERSION"
GO_STATEMENT="Choose a SystemImager initrd to modify."
ALT_STATEMENT="Sure to quit?"
SELECT_FILE="Choose file to modify"
USER_INTERRUPT="99"
DATE=`date +%Y%m%d`
KERN_VER=`uname -a`
si_initrdtools-dialog_0.3.1.sh
#!/bin/bash
# si_initrdtools
#
# A dialog/bash utility to manipulate a SystemImager initrd image
# Sun Jun 15 01:00:26 CDT 2008
# William J Kennedy
#
#############################################
set -x
trap 'umount $TMPDIR/mount; $VIEWER $LOG; echo "INT caught - exiting si_initrdtools"; rm *.$$; exit $USER_INTERRUPT' TERM INT
#############################################
# BEGIN VARIABLES
VERSION="20080615"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
GREET_STATEMENT="Systemimager initrd tools $VERSION"
GO_STATEMENT="Choose a SystemImager initrd to modify."
ALT_STATEMENT="Sure to quit?"
si_initrdtools-dialog_0.3.sh
#!/bin/bash
# si_initrdtools
#
# A dialog/bash utility to manipulate a SystemImager initrd image
# Sun Jun 15 01:00:26 CDT 2008
# William J Kennedy
#
#############################################
set -x
trap 'umount $TMPDIR/mount; $VIEWER $LOG; echo "INT caught"; rm *.$$; exit $USER_INTERRUPT' TERM INT
#############################################
# BEGIN VARIABLES
VERSION="20080615"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
GREET_STATEMENT="Systemimager initrd tools $VERSION"
GO_STATEMENT="Choose a SystemImager initrd to modify."
ALT_STATEMENT="Sure to quit?"
SELECT_FILE="Choose file to modify"
USER_INTERRUPT="99"
DATE=`date +%Y%m%d`
stencilize.sh
#! /bin/bash
#
convert -resize 200% -posterize 6 -charcoal 140 $img _stencilized-$img
systemimager-4.0.2-config-w-menu-UNTESTED.sh
#!/bin/sh
#
# "SystemImager"
#
# Copyright (C) 1999-2005 Brian Elliott Finley
#
# $Id: functions 4267 2007-09-07 07:32:56Z bli $
# vi: set filetype=sh et ts=4:
#
# Others who have contributed to this code:
# Charles C. Bennett, Jr.
# Sean Dague
# Dann Frazier
# Curtis Zinzilieta
#
################################################################################
#
# Variables