Skip to content

Commit

Permalink
initial commit (CVS repo lost :-( )
Browse files Browse the repository at this point in the history
  • Loading branch information
multi-io committed Jul 5, 2011
0 parents commit 3ed25e1
Show file tree
Hide file tree
Showing 254 changed files with 9,627 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~

8 changes: 8 additions & 0 deletions ExecuteQuery
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# Java heap size, in megabytes
JAVA_HEAP_SIZE=256

eq_home=/usr/local/ExecuteQuery

exec java -mx${JAVA_HEAP_SIZE}m -jar "${eq_home}/eq.jar"
3 changes: 3 additions & 0 deletions Linux/myps
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

ps -A fo pid,ppid,sid,pgid,tty8,stat,user,args
254 changes: 254 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
X11LDFLAGS=-L/usr/X11R6/lib -lX11

GLOBALFILES=\
a2xcf \
apt-list-contents \
apt-build \
audioreset \
blackscrn.pl \
cdburn \
cdburn-rr \
dvdburn \
dvdburn-rr \
dvdvideoburn \
cdcopy.sh \
cdcopy_onthefly.sh \
cddaenc.sh \
cddamv.pl \
cddarip.sh \
cdda-cddbrip \
cdisoburn \
create-index-htmls \
cutv \
deb-import-signing-key \
emacs_or_fallback.sh \
gtetrinet-configure-keyboard \
gtetrinet-unconfigure-keyboard \
gnuplot-and-wait \
gnuplot-eps \
gnuplot-eps-and-wait \
gnuplot-png \
jolietrename \
jolietrenamecurrdir \
jolietnamecheckcurrdir \
chk4rlogins \
chr \
chrcodes \
cpmydir.sh \
cvs-add-subtree-dirs \
cvs-add-subtree-files \
cvs-isstssh \
cvs-myissthostssh \
cvslog2kwsubst \
cvsshowunkn.pl \
deb-fetch-uris \
deb-list-pkgs \
deb-xtract-uris \
disk2file.sh \
dos2unixm.sh \
e \
eardiff.sh \
edit-encrypted \
eol2nul \
execlogged \
ExecuteQuery \
fetchheise-fetcharticles \
fetchheise-idxpage-fetchallarticles \
fetchheise-idxpage-idxpageurls \
fetchheise-idxpage-all-articleurls \
fetchheise-idxpages-articleurls \
fetchmail-setup-tunnel.sh \
firefox-print-stacktraces \
firefox-print-stacktraces.gdbscript \
mail.cs.tu-berlin.de.cert \
fetchmail-shutdown-tunnel.sh \
ff \
file2disk.sh \
fsumup \
fullpath \
gal2nsbm.py \
generate-site-specific-filenames \
getcdrdev \
getdvdrdev \
getpid \
gianasis \
grepre \
grep_instfiles \
ifaceaddr \
imagej \
install-javaplugin \
instfilelist.pl \
ip6to4 \
irexec.pl \
iriver2m3ufile.pl \
kill-flashplugin \
kill-vpn.sh \
locateme \
libusers \
linehist \
listexecs \
lnum.sh \
log-transferrate \
make-my_configure_help \
m3u2iriver.pl \
m3u2iriverfile.pl \
m3uxmms2unx \
maestro \
memeaters.pl \
memeaters1.pl \
memusage \
memusage_for_pid_by_lib \
memusage-log-for-pid \
memusage-snapshot \
mlnet-disksize-watchdog \
mouseclick \
mplayerctl \
mplayer-ctlable \
mplayer-dump-latest \
mygdb \
myhexdump \
palm-fetchheise \
pidof \
pslibs.pl \
quotelines \
rfcidx.pl \
rminst \
run-if-not-running.sh \
scp-myissthost \
sensible-browser \
settimefromntp \
showhomeip \
show-encrypted \
sleepingsongs \
slowdown.pl \
sumsizes \
sumup \
syncmp3s \
thermal-snapshot \
timedrun.sh \
timelogger.pl \
unique-lines \
unpacksrcrpm.sh \
unzip2d \
update_cookiestxts \
vcr-chilitv \
vcr-daily \
videnc \
videnc.sh \
wait4time \
wgetheise.sh \
wget-completepage \
wget-withbrowsersettings \
xmms2iriver \
zipdir.sh \
stopwatch \
showargs \
jython2bsh \
mountdata \
umountdata \
freemind \
export-sawfish \
perl-e-perline \
perl-e-perline-inplace \
psfindbywd \
rspeedway \
ruby-e-perline \
show-spurious-listeners \
spurious-listeners-watchdog \
svnshowunkn \
tvbrowser \
wget-logging \
xless \
xmule-continuously \
xscreensaver-keepaway \
xterm-fullscreen \
xy+-plot \
xy+-average \
xypairs-derive \
xypairs-average \
y+-plot \
youtubedown \
myhomedesktop/emacs_or_fallback.sh \
make-misc \
misc.make \
lesscat \
strace-all

#GLOBALTARGET=$(HOME)/bin
GLOBALTARGET=/usr/local/bin

GLOBALUSER=root

SBINFILES=\
memusagelogd \
thermallogd \
run-ppp-over-ssh \
myissthost/run-isstsshvpn \
myissthost/run-isstsshvpn-continuously \
mysofdhost/run-sofdsshvpn \
mysofdhost/run-sofdsshvpn-continuously \
myhomehost/kill-vpn-continuously \
myhomehost/isstsshvpn-routes \
myhomehost/sofdsshvpn-routes \
myhomehost/setup-6to4 \
myhomehost/shutdown-6to4 \
myhomehost/wlan-scan \
myhomehost/wlan-switch-to-ap \
myhomehost/wlan-switch-to-sta \
myhomehost/wlan-restartap \
myissthost/setup-6to4 \
myissthost/shutdown-6to4 \
myhomedesktop/setup-6to4 \
myhomedesktop/shutdown-6to4 \
mylaptop/wlan-reinit

SBINTARGET=/usr/local/sbin

USERFILES=\
firefox-memusage-log-create.sh \
firefox-memusage-log-plot.sh \
irexec.pl \
ssh-forward-allisst \
ssh-forward-allisst-continuously \
ssh-forward-isstcvs \
ssh-forward-isstica \
ssh-forward-isstssh \
ssh-forward-isstwww \
ssh-forward-myissthostssh \
ssh-forwarded-isstssh \
ssh-forwarded-myissthost \
ssh-isstunixhost \
ssh-myissthost \
xmms.sh

USERTARGET=$(HOME)/bin

default: install

install: install-global install-user

TMP=/tmp/mkinstglobal-$(USER)

include Makefile.conf

# TODO: race condition?
install-global: $(GLOBALFILES)
mkdir -p $(GLOBALTARGET)
mkdir -p $(SBINTARGET)
rm -f $(TMP); umask 022; echo >$(TMP)
$(foreach file,$(GLOBALFILES), echo mkdir -p '$(GLOBALTARGET)'/`dirname $(file)` >>$(TMP); \
echo install $(file) '$(GLOBALTARGET)'/`dirname $(file)` >>$(TMP);)
$(foreach file,$(SBINFILES), echo mkdir -p '$(SBINTARGET)'/`dirname $(file)` >>$(TMP); \
echo install $(file) '$(SBINTARGET)'/`dirname $(file)` >>$(TMP);)
su $(GLOBALUSER) $(TMP)
rm -f $(TMP)


install-user: $(USERFILES)
mkdir -p $(USERTARGET)
$(foreach file,$(USERFILES), mkdir -p '$(USERTARGET)'/`dirname $(file)`; \
install $(file) '$(USERTARGET)'/`dirname $(file)`;)


mouseclick: mouseclick.c
$(CC) $(CFLAGS) $(X11LDFLAGS) -o $@ $<
6 changes: 6 additions & 0 deletions Makefile.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SBINTARGET=/usr/local/sbin
GLOBALTARGET=/usr/local/bin
GLOBALUSER=root
# LDFLAGS=-L/usr/X11R6/lib -lX11
X11LDFLAGS=-L/usr/X11R6/lib -lX11
CFLAGS:=$(CFLAGS) -I/usr/X11R6/include
6 changes: 6 additions & 0 deletions Makefile.conf.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SBINTARGET=$(HOME)/bin
GLOBALTARGET=$(HOME)/bin
GLOBALUSER=$(USER)
# LDFLAGS=-L/usr/X11R6/lib -lX11
X11LDFLAGS=-L/usr/X11R6/lib -lX11
CFLAGS:=$(CFLAGS) -I/usr/X11R6/include
3 changes: 3 additions & 0 deletions SunOS/myps
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

ps -A -o user,pid,ppid,s,pcpu,pmem,vsz,osz,rss,stime,etime,time,args
26 changes: 26 additions & 0 deletions a2xcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

while getopts 'o:' OPTNAME; do
case "$OPTNAME" in
"o")
outfile="$OPTARG" ;;
"?")
exit 1;;
esac
done

shift $(($OPTIND - 1))

for infile in "$@"; do
if [ -z "$outfile" ]; then
outfile=${infile%.*}.xcf;
fi
# TODO: not white-space safe. Didn't find a goddamn way to pass arguments to the scheme code,
# and you don't really want to do the filename iteration/globbing in the scheme code
gimp --no-interface --no-data --batch \
"(let*
((image (car (gimp-file-load RUN-NONINTERACTIVE \"$infile\" \"$infile\")))
(actlayer (car (gimp-image-get-active-layer image))))
(gimp-file-save RUN-NONINTERACTIVE image actlayer \"$outfile\" \"$outfile\"))" \
--batch '(gimp-quit TRUE)'
done
Loading

0 comments on commit 3ed25e1

Please sign in to comment.