-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Kujau <[email protected]>
- Loading branch information
Showing
31 changed files
with
45 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#!/bin/sh | ||
# | ||
# (C)2009 [email protected] | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# 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. | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (C)2011 Christian Kujau <[email protected]> | ||
# (c)2011 Christian Kujau <[email protected]> | ||
# | ||
# Compress a file with different programs and see how long it took to do this. | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (C)2013, [email protected] | ||
# (c)2013 Christian Kujau <[email protected]> | ||
# Poor wo/man's dm-crypt benchmark | ||
# | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (C)2013, [email protected] | ||
<<<<<<< HEAD | ||
# (c)2013 Christian Kujau <[email protected]> | ||
# 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! | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# (c) 2009-2011 Christian Kujau <[email protected]> | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# fs-bench.conf, to be used by fs-bench.sh | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2009-2011 Christian Kujau <[email protected]> | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# Yet another filesystem benchmark script | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
# | ||
# (c) Christian Kujau <[email protected]> | ||
# (c)2015 Christian Kujau <[email protected]> | ||
# | ||
# Benchmark various checksum programs | ||
# | ||
# Example: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2013, Christian Kujau <[email protected]> | ||
# (c)2013 Christian Kujau <[email protected]> | ||
# | ||
# Generate checksums of files and store them | ||
# via Extended Attributes | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (C) Christian Kujau <[email protected]> | ||
# (c)2014 Christian Kujau <[email protected]> | ||
# | ||
# Convert music from/to various formats | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/perl | ||
# | ||
# (c) 2011, [email protected] | ||
# (c)2011 Christian Kujau <[email protected]> | ||
# Make Perl count :-) | ||
# | ||
use strict; | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,10 @@ | |
# Visit http://bash.cyberciti.biz/ for more information. | ||
# -------------------------------------------------------------- | ||
# | ||
# (C)2011, [email protected] | ||
# - hostname added | ||
# - removed the 'run as root' part | ||
# (c)2011 Christian Kujau <[email protected]> | ||
# * hostname added | ||
# * removed the 'run as root' part | ||
# | ||
|
||
if {$argc!=3} { | ||
send_user "Usage: $argv0 \[user@\]target user password\n" | ||
exit | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/usr/bin/expect -f | ||
# | ||
# (c) 2009, [email protected] | ||
# Run e2fsck via expect, see http://nerdbynature.de/s9y/?128 | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# Run e2fsck via expect, see | ||
# http://nerdbynature.de/s9y/2009/10/18/e2fsck-expect | ||
# | ||
set timeout -1 | ||
spawn /sbin/e2fsck -v $argv | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env expect -f | ||
# | ||
# (c) 2011, [email protected] | ||
# (c)2011 Christian Kujau <[email protected]> | ||
# | ||
# 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" | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php | ||
/* | ||
* (c) [email protected] | ||
* Generate a German imprint for websites. | ||
* (c)2014 Christian Kujau <[email protected]> | ||
* | ||
* 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). | ||
* | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/* | ||
* (c)2009 [email protected] | ||
* (c)2009 Christian Kujau <[email protected]> | ||
* Display REMOTE_ADDR, HTTP_X_FORWARDED_FOR, HTTP_USER_AGENT of the client | ||
* | ||
*/ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2010, [email protected] | ||
# (c)2010 Christian Kujau <[email protected]> | ||
# | ||
# Install a new kernel, System.map and .config, | ||
# but not via the usual "make install" routine | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2009, Christian Kujau <[email protected]> | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# The therm_adt746x kernel module is not using standard i2c routines | ||
# and we cannot use lm_sensors to request fan or temperature status. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2009, Christian Kujau <[email protected]> | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# Based on the 'homedirs' plugin, initially written in Perl by Philipp Gruber <[email protected]> | ||
# | ||
# We still need a cronjob to update CACHEFILE once in a while, e.g.: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2010 [email protected] | ||
# (c)2010 Christian Kujau <[email protected]> | ||
# Get accounting information from a running Tor server. | ||
# | ||
# More info: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2014 Christian Kujau <[email protected]> | ||
# MacPorts cleanup | ||
# | ||
PATH=/bin:/usr/bin:/opt/local/bin | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2013 Christian Kujau <[email protected]> | ||
# | ||
# 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. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2015 Christian Kujau <[email protected]> | ||
# | ||
# 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 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2009 Christian Kujau <[email protected]> | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# Check for certain directories to be in place. If they are, | ||
# create a file which says that we're ready to be backed up. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2011 Christian Kujau <[email protected]> | ||
# (c)2011 Christian Kujau <[email protected]> | ||
# | ||
# Forcefully rotate rsnapshot backups, intentionally discard older copies | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2009 Christian Kujau <[email protected]> | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# | ||
# Rsnapshot wrapper script. For this to work, the rsnapshot.conf | ||
# file for each host must include the following directives: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2010 [email protected] | ||
# (c)2010 Christian Kujau <[email protected]> | ||
# | ||
# Execute a few security checks, keep state across runs. | ||
# rkhunter: http://www.rootkit.nl/projects/rootkit_hunter.html | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c) 2009, [email protected] | ||
# (c)2009 Christian Kujau <[email protected]> | ||
# therm_adt746x cannot be queried via i2c, so | ||
# we're not using lm_sensors but this little script | ||
# | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/ksh | ||
# | ||
# (C) Mule, 2009-08-07 | ||
# The Lolcats, they are everywhere! | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# (c)2011 [email protected] | ||
# (c)2011 Christian Kujau <[email protected]> | ||
# Send SysRq to VirtualBox virtual machines | ||
# | ||
# The schema for sending sysrq keycodes is: | ||
|