Commit f5a8cd12 authored by Nico Schottelius's avatar Nico Schottelius

add files that are living in ~/bin for a while

Signed-off-by: default avatarNico Schottelius <nico@ikn.schottelius.org>
parent 77eb9f52
/home/users/nico/b/conkeror/contrib/run-conkeror
\ No newline at end of file
/home/users/nico/b/conkeror/conkeror-spawn-helper
\ No newline at end of file
#!/bin/sh
out=bonnie.html
hosts="root@sgss5520ur01:/root/bonnie-mnt3 root@sgsr61001:/root/bonnie-local2"
tmp=$(mktemp -d /tmp/anyhow.XXXXXXXXXXXXX)
for host in $hosts; do
scp $host $tmp
done
cat $tmp/* | bon_csv2html > $out
echo rm -rf "$tmp"
This diff is collapsed.
#!/bin/sh
set -e
set -x
iwconfig wlan0 essid MOBILE
sleep 2
udhcpc -nfqi wlan0
vpnc ~nico/ethz/vpn/pc
#!/bin/sh
# 1. collect information about the system:
# - cpu
# - memory
# - lshw
# - dmesg
# -
# 2. test memory
# 2. test harddrive
# - raid?
# - performance
# test reboots
#
#
cores="$1"; shift
scratch="$1"; shift
mem="$1"; shift
# 7d
cpuburn
# 7d
stress -i "$cores"
# 64 samples
wget http://www.coker.com.au/bonnie++/bonnie++-1.03d.tgz
tar xfvz bonnie++-1.03d.tgz
cd bonnie++-1.03d
./configure && make
cd $scratch
bonnie++ -d . -s 36g -n 256 -n 64 -u 0 | tee /root/bonnie-mnt
#
iozone -A
# 24h
reboot
# netperf
#!/bin/sh
# Nico Schottelius
# 2009-07-24
# Connect to a terminal server
opts="-u nicosc -d d -g 1260x780"
# use xrandr -q | awk '/\*/ { print $1 }' later
rdesktop $opts sgterm1.inf.ethz.ch || rdesktop $opts sgterm2.inf.ethz.ch
#!/bin/sh
#
# 2009 Nico Schottelius (nico-nsbin at schottelius.org)
#
# This file is part of nsbin.
#
# nsbin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# nsbin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with nsbin. If not, see <http://www.gnu.org/licenses/>.
#
#
# Fetches all remotes and merges tracked trees
#
# Idea is to track only interesting remote branches (see linux/likenext-init.sh)
#
failed=""
# update first, so we can continue to work if we go offline later
for remote in $(git remote); do
git fetch -v "$remote"
done
# merge
for rbranch in $(git branch -r); do
if ! git merge "$rbranch"; then
failed="$failed $rbranch"
git reset --hard
fi
done
if [ "$failed" ]; then
echo "Failed merges: $failed"
exit 1
fi
#!/bin/sh
ip l s eth0 down
ip l s wlan0 up
iwconfig wlan0 essid hotspot-hsz-t
udhcpc -nfqi wlan0
#!/bin/sh
dir="${HOME}/privat/freunde/"
file="mobile.nummer"
cat "${dir}/$1/${file}"
#!/bin/sh
#
# /usr/bin is obsolete
# /usr/lib is obsolete
# /usr/*/{bin,lib,...} is now the correct path
#
find "$1" -type f -exec chmod 0644 {} \;
find "$1" -type d -exec chmod 0755 {} \;
#!/bin/sh
echo "$(date) : $1 - Download completed." | mail -s "[rtorrent] - Download completed : $1" nico-rtorrent-notify@schottelius.org
#!/bin
count="$1"
#!/bin/sh
# Nico Schottelius
# 2007-05-21
# Script used to test our fbsd dell servers
# => kills it
# => runs fine on my linux workstation :(
sequences=10
forks=50
count=140240
tmp=/tmp/testdisks
dev=/dev/zero
i=0
while [ "$i" -lt "$sequences" ]; do
echo "Run: $i ..."
k=0
while [ "$k" -lt "$forks" ]; do
file=$(mktemp "$tmp/$(basename $0).XXXXXXXXXXXXXXXX")
( dd if=$dev of="$file" bs=512 count=$count; rm -f "$file" ) &
k=$(($k+1))
done
echo "Waiting ..."
wait
i=$(($i+1))
done
#!/bin/sh
exec urxvtc
#!/bin/sh
# Enable connected, disable disconnected outputs
for output in $(xrandr -q | grep -v ^Screen | awk '/^[^ ]/ { print $1 }'); do
xrandr --output $output --auto
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment