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 ;
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
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_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
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-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`
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.$$
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