From 4146af0d4153dcd1d564ca097d16a367fa425ce4 Mon Sep 17 00:00:00 2001 From: Christian Kujau Date: Sun, 1 May 2016 11:39:24 -0700 Subject: [PATCH] Copyleft information updated Signed-off-by: Christian Kujau --- backup-mysql.sh | 9 +++++---- benchmarks/compress-test.sh | 2 +- benchmarks/cryptsetup_benchmark.sh | 2 +- benchmarks/cryptsetup_ciphertest.sh | 5 +---- benchmarks/fs-bench.conf | 2 +- benchmarks/fs-bench.sh | 2 +- benchmarks/test-digests.sh | 3 ++- checksum_file.sh | 2 +- convert-music.sh | 2 +- count.pl | 2 +- diff2html.sh | 1 - expect/change-passwords.exp | 7 +++---- expect/e2fsck.exp | 6 ++++-- expect/rpb-ts.exp | 4 ++-- funiq.sh | 4 +++- impressum.php | 4 ++-- ip.php | 2 +- kerninst.sh | 2 +- munin/plugins/adt746x_ | 2 +- munin/plugins/du_multidirs | 2 +- munin/plugins/tor_traffic | 2 +- port-mgmt.sh | 1 + print-authorized-keys.sh | 1 + qemu-tap => qemu-tap.sh | 2 ++ rsnapshot/rsnapshot-ready.sh | 2 +- rsnapshot/rsnapshot-rotate.sh | 2 +- rsnapshot/rsnapshot-wrapper.sh | 2 +- security_checks.sh | 2 +- sensors_adt746x.sh | 2 +- ternet/flop.sh | 2 +- vbox-sysrq.sh | 2 +- 31 files changed, 45 insertions(+), 40 deletions(-) rename qemu-tap => qemu-tap.sh (96%) diff --git a/backup-mysql.sh b/backup-mysql.sh index bf13013..ab68401 100755 --- a/backup-mysql.sh +++ b/backup-mysql.sh @@ -1,13 +1,14 @@ #!/bin/sh # -# (C)2009 lists@nerdbynature.de +# (c)2009 Christian Kujau # # We once had a one-liner to backup all our databases: +# # $ mysqldump -AcfFl --flush-privileges | pbzip2 -c > backup.sql.bz2 # -# However, most of the databases do not change much or do not change at -# over the day, yet the resulting .bz2 had to be generated every day, -# *did* change and, worst of all: had to be transferred in full over a +# However, most of the databases do not change much or do not change at all +# over the day, yet the resulting .bz2 had to be generated every day. The +# compressed result _did_ change however and to be transferred in full over a # 128 kbps line to our backup host. This one is slightly more complicated, # but should suffice. # diff --git a/benchmarks/compress-test.sh b/benchmarks/compress-test.sh index 63c9bf0..63fef2a 100755 --- a/benchmarks/compress-test.sh +++ b/benchmarks/compress-test.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (C)2011 Christian Kujau +# (c)2011 Christian Kujau # # Compress a file with different programs and see how long it took to do this. # diff --git a/benchmarks/cryptsetup_benchmark.sh b/benchmarks/cryptsetup_benchmark.sh index 4a616d9..677dee9 100755 --- a/benchmarks/cryptsetup_benchmark.sh +++ b/benchmarks/cryptsetup_benchmark.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (C)2013, lists@nerdbynature.de +# (c)2013 Christian Kujau # Poor wo/man's dm-crypt benchmark # diff --git a/benchmarks/cryptsetup_ciphertest.sh b/benchmarks/cryptsetup_ciphertest.sh index 0d0da6f..83d4178 100755 --- a/benchmarks/cryptsetup_ciphertest.sh +++ b/benchmarks/cryptsetup_ciphertest.sh @@ -1,7 +1,6 @@ #!/bin/sh # -# (C)2013, lists@nerdbynature.de -<<<<<<< HEAD +# (c)2013 Christian Kujau # Create dm-crypt devices with different combinations of ciphers, modes, hash # alorithms and key sizes. # @@ -20,11 +19,9 @@ # # $ find /lib/modules/$(uname -r)/ -type f -path "*kernel/crypto*" -printf "%f\n" \ # | sed 's/\.ko$//' | while read a; do modprobe -v $a; done -======= # # Test different cipher, mode and hash combinations. The output can be # used by cryptsetup_benchmark.sh later on. ->>>>>>> 26eb66da4963b20b77f74384716447dfbcb3e5dc # # unset me! diff --git a/benchmarks/fs-bench.conf b/benchmarks/fs-bench.conf index 2972beb..253bae7 100644 --- a/benchmarks/fs-bench.conf +++ b/benchmarks/fs-bench.conf @@ -1,5 +1,5 @@ # -# (c) 2009-2011 Christian Kujau +# (c)2009 Christian Kujau # # fs-bench.conf, to be used by fs-bench.sh # diff --git a/benchmarks/fs-bench.sh b/benchmarks/fs-bench.sh index 0d2f4d9..243d5c0 100755 --- a/benchmarks/fs-bench.sh +++ b/benchmarks/fs-bench.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2009-2011 Christian Kujau +# (c)2009 Christian Kujau # # Yet another filesystem benchmark script # diff --git a/benchmarks/test-digests.sh b/benchmarks/test-digests.sh index a97d61b..f21d634 100755 --- a/benchmarks/test-digests.sh +++ b/benchmarks/test-digests.sh @@ -1,6 +1,7 @@ #!/bin/sh # -# (c) Christian Kujau +# (c)2015 Christian Kujau +# # Benchmark various checksum programs # # Example: diff --git a/checksum_file.sh b/checksum_file.sh index c234a7c..7d133cb 100755 --- a/checksum_file.sh +++ b/checksum_file.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2013, Christian Kujau +# (c)2013 Christian Kujau # # Generate checksums of files and store them # via Extended Attributes diff --git a/convert-music.sh b/convert-music.sh index 0992cf7..ff25813 100755 --- a/convert-music.sh +++ b/convert-music.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (C) Christian Kujau +# (c)2014 Christian Kujau # # Convert music from/to various formats # diff --git a/count.pl b/count.pl index feb940c..34ed42b 100755 --- a/count.pl +++ b/count.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# (c) 2011, lists@nerdbynature.de +# (c)2011 Christian Kujau # Make Perl count :-) # use strict; diff --git a/diff2html.sh b/diff2html.sh index cdcf671..c617435 100755 --- a/diff2html.sh +++ b/diff2html.sh @@ -4,7 +4,6 @@ # (C) Mitch Frazier, 2008-08-27 # http://www.linuxjournal.com/content/convert-diff-output-colorized-html # - cat < diff --git a/expect/change-passwords.exp b/expect/change-passwords.exp index 26c7575..5be952f 100755 --- a/expect/change-passwords.exp +++ b/expect/change-passwords.exp @@ -9,11 +9,10 @@ # Visit http://bash.cyberciti.biz/ for more information. # -------------------------------------------------------------- # -# (C)2011, lists@nerdbynature.de -# - hostname added -# - removed the 'run as root' part +# (c)2011 Christian Kujau +# * hostname added +# * removed the 'run as root' part # - if {$argc!=3} { send_user "Usage: $argv0 \[user@\]target user password\n" exit diff --git a/expect/e2fsck.exp b/expect/e2fsck.exp index 02d95ea..89359ff 100755 --- a/expect/e2fsck.exp +++ b/expect/e2fsck.exp @@ -1,7 +1,9 @@ #!/usr/bin/expect -f # -# (c) 2009, lists@nerdbynature.de -# Run e2fsck via expect, see http://nerdbynature.de/s9y/?128 +# (c)2009 Christian Kujau +# +# Run e2fsck via expect, see +# http://nerdbynature.de/s9y/2009/10/18/e2fsck-expect # set timeout -1 spawn /sbin/e2fsck -v $argv diff --git a/expect/rpb-ts.exp b/expect/rpb-ts.exp index 179f739..f6dc287 100755 --- a/expect/rpb-ts.exp +++ b/expect/rpb-ts.exp @@ -1,10 +1,10 @@ #!/usr/bin/env expect -f # -# (c) 2011, lists@nerdbynature.de +# (c)2011 Christian Kujau +# # 1) Login to a terminalserver (Bay Networks Remote Annex 2000) # 2) Execute a command on a Remote Power Boot Switch (WTI RPB+) # - if {$argc!=4} { send_user " Usage: $argv0 \[server\] \[port\] \[password\] \[command\]\n" send_user "Commands: /s /d /\[1-5\]\[on|off|boot\]\n" diff --git a/funiq.sh b/funiq.sh index 261069b..0bf7ca2 100755 --- a/funiq.sh +++ b/funiq.sh @@ -1,9 +1,11 @@ #!/bin/sh # -# Get percentage of similarity from -s command line option, or 85 for default # (C) David Lambert, 2008-10-01 +# Fuzzy uniq (or Parsing Connect:Direct stats part 3) # http://cdunix.blogspot.com/2008/10/fuzzy-uniq-or-parsing-connectdirect.html # +# Get percentage of similarity from -s command line option, or 85 for default +# # Percentage of similarity if [ "$1" = "-s" -a -n "$2" ]; then diff --git a/impressum.php b/impressum.php index 1859ad3..2528017 100644 --- a/impressum.php +++ b/impressum.php @@ -1,8 +1,8 @@ * + * Generate a German imprint for websites. * Note: the MDStV (Staatsvertrag ueber Mediendienste) has been decommisioned * on 2008-03-01 and has been replaced with the TMG (Telemediengesetz). * diff --git a/ip.php b/ip.php index 35c08da..8d30950 100644 --- a/ip.php +++ b/ip.php @@ -1,6 +1,6 @@ * Display REMOTE_ADDR, HTTP_X_FORWARDED_FOR, HTTP_USER_AGENT of the client * */ diff --git a/kerninst.sh b/kerninst.sh index 8331326..44170c0 100755 --- a/kerninst.sh +++ b/kerninst.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c)2010, lists@nerdbynature.de +# (c)2010 Christian Kujau # # Install a new kernel, System.map and .config, # but not via the usual "make install" routine diff --git a/munin/plugins/adt746x_ b/munin/plugins/adt746x_ index dcc0257..5f2f511 100755 --- a/munin/plugins/adt746x_ +++ b/munin/plugins/adt746x_ @@ -1,6 +1,6 @@ #!/bin/sh # -# (c)2009, Christian Kujau +# (c)2009 Christian Kujau # # The therm_adt746x kernel module is not using standard i2c routines # and we cannot use lm_sensors to request fan or temperature status. diff --git a/munin/plugins/du_multidirs b/munin/plugins/du_multidirs index d975851..d8c5fd3 100755 --- a/munin/plugins/du_multidirs +++ b/munin/plugins/du_multidirs @@ -1,6 +1,6 @@ #!/bin/sh # -# (c)2009, Christian Kujau +# (c)2009 Christian Kujau # Based on the 'homedirs' plugin, initially written in Perl by Philipp Gruber # # We still need a cronjob to update CACHEFILE once in a while, e.g.: diff --git a/munin/plugins/tor_traffic b/munin/plugins/tor_traffic index 695634e..d19927d 100755 --- a/munin/plugins/tor_traffic +++ b/munin/plugins/tor_traffic @@ -1,6 +1,6 @@ #!/bin/sh # -# (c)2010 lists@nerdbynature.de +# (c)2010 Christian Kujau # Get accounting information from a running Tor server. # # More info: diff --git a/port-mgmt.sh b/port-mgmt.sh index 0d79464..ebc7149 100755 --- a/port-mgmt.sh +++ b/port-mgmt.sh @@ -1,5 +1,6 @@ #!/bin/sh # +# (c)2014 Christian Kujau # MacPorts cleanup # PATH=/bin:/usr/bin:/opt/local/bin diff --git a/print-authorized-keys.sh b/print-authorized-keys.sh index ae0f08f..02ef381 100755 --- a/print-authorized-keys.sh +++ b/print-authorized-keys.sh @@ -1,6 +1,7 @@ #!/bin/sh # # (c)2013 Christian Kujau +# # There's currently no way to list the fingerprints of all the keys in # authorized_keys separately. This may be useful to see if a certain # public key is listed in authorized_keys. diff --git a/qemu-tap b/qemu-tap.sh similarity index 96% rename from qemu-tap rename to qemu-tap.sh index 21872c9..7e23032 100755 --- a/qemu-tap +++ b/qemu-tap.sh @@ -1,5 +1,7 @@ #!/bin/sh # +# (c)2015 Christian Kujau +# # Based on: # https://superuser.com/questions/596095/how-do-i-bridge-a-connection-from-wi-fi-to-tap-on-mac-os-x-for-the-emulator-qe # http://en.blog.guylhem.net/post/88201449689/running-qemu-with-tap0-and-nat-under-osx-10-9-maverick diff --git a/rsnapshot/rsnapshot-ready.sh b/rsnapshot/rsnapshot-ready.sh index 60e1bfc..2651a43 100755 --- a/rsnapshot/rsnapshot-ready.sh +++ b/rsnapshot/rsnapshot-ready.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2009 Christian Kujau +# (c)2009 Christian Kujau # # Check for certain directories to be in place. If they are, # create a file which says that we're ready to be backed up. diff --git a/rsnapshot/rsnapshot-rotate.sh b/rsnapshot/rsnapshot-rotate.sh index 250aa40..2e87db4 100755 --- a/rsnapshot/rsnapshot-rotate.sh +++ b/rsnapshot/rsnapshot-rotate.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2011 Christian Kujau +# (c)2011 Christian Kujau # # Forcefully rotate rsnapshot backups, intentionally discard older copies # diff --git a/rsnapshot/rsnapshot-wrapper.sh b/rsnapshot/rsnapshot-wrapper.sh index fff1360..efaacf7 100755 --- a/rsnapshot/rsnapshot-wrapper.sh +++ b/rsnapshot/rsnapshot-wrapper.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2009 Christian Kujau +# (c)2009 Christian Kujau # # Rsnapshot wrapper script. For this to work, the rsnapshot.conf # file for each host must include the following directives: diff --git a/security_checks.sh b/security_checks.sh index 8cf0855..a1ac195 100755 --- a/security_checks.sh +++ b/security_checks.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2010 lists@nerdbynature.de +# (c)2010 Christian Kujau # # Execute a few security checks, keep state across runs. # rkhunter: http://www.rootkit.nl/projects/rootkit_hunter.html diff --git a/sensors_adt746x.sh b/sensors_adt746x.sh index fa209a3..fdfb32d 100755 --- a/sensors_adt746x.sh +++ b/sensors_adt746x.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c) 2009, lists@nerdbynature.de +# (c)2009 Christian Kujau # therm_adt746x cannot be queried via i2c, so # we're not using lm_sensors but this little script # diff --git a/ternet/flop.sh b/ternet/flop.sh index 1cde05c..cecd13d 100755 --- a/ternet/flop.sh +++ b/ternet/flop.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/ksh # # (C) Mule, 2009-08-07 # The Lolcats, they are everywhere! diff --git a/vbox-sysrq.sh b/vbox-sysrq.sh index c5ae4bd..3cffef2 100644 --- a/vbox-sysrq.sh +++ b/vbox-sysrq.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# (c)2011 lists@nerdbynature.de +# (c)2011 Christian Kujau # Send SysRq to VirtualBox virtual machines # # The schema for sending sysrq keycodes is: