From 865ceea63cf8f1c070eb88e473908728cb241a6c Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 21 Oct 2014 15:17:47 +0100 Subject: fix --- backup-2pac.exclude | 10 ---------- backup_2pac | 2 +- backup_2pac.exclude | 10 ++++++++++ chromium | 2 +- chromium_real_user_agent | 2 +- dd_bench | 18 ------------------ dd_benchmark | 18 ++++++++++++++++++ mdstat | 6 ++++++ 8 files changed, 37 insertions(+), 31 deletions(-) delete mode 100644 backup-2pac.exclude create mode 100644 backup_2pac.exclude delete mode 100755 dd_bench create mode 100755 dd_benchmark create mode 100755 mdstat diff --git a/backup-2pac.exclude b/backup-2pac.exclude deleted file mode 100644 index 571287a..0000000 --- a/backup-2pac.exclude +++ /dev/null @@ -1,10 +0,0 @@ -/dev -/media -/mnt -/proc -/run -/sys -/tmp -/toolbox -/var -/workspace diff --git a/backup_2pac b/backup_2pac index 43748fb..b57abe9 100755 --- a/backup_2pac +++ b/backup_2pac @@ -4,6 +4,6 @@ check_root logger RSYNC BACKUP START -rsync -avv --delete --exclude-from /home/pks/bin/backup-2pac.exclude / /workspace/.b &>/var/log/backup.log +rsync -avv --delete --exclude-from /home/pks/bin/backup_2pac.exclude / /workspace/.b &>/var/log/backup.log logger RSYNC BACKUP END diff --git a/backup_2pac.exclude b/backup_2pac.exclude new file mode 100644 index 0000000..571287a --- /dev/null +++ b/backup_2pac.exclude @@ -0,0 +1,10 @@ +/dev +/media +/mnt +/proc +/run +/sys +/tmp +/toolbox +/var +/workspace diff --git a/chromium b/chromium index c0f60ff..4ca38d4 100755 --- a/chromium +++ b/chromium @@ -1,4 +1,4 @@ #!/bin/zsh -/usr/bin/chromium-browser --no-referrers --user-agent="\"$(shuf -n 1 /home/pks/bin/user-agents)\"" ${1+"$@"} 2>/dev/null & +/usr/bin/chromium-browser --no-referrers --user-agent="\"$(shuf -n 1 /home/pks/bin/user-agents)\"" ${1+"$@"} 2>/dev/null diff --git a/chromium_real_user_agent b/chromium_real_user_agent index 3d93034..39b8db7 100755 --- a/chromium_real_user_agent +++ b/chromium_real_user_agent @@ -1,4 +1,4 @@ #!/bin/zsh -/usr/bin/chromium-browser --no-referrers ${1+"$@"} 2>/dev/null & +/usr/bin/chromium-browser --no-referrers ${1+"$@"} 2>/dev/null diff --git a/dd_bench b/dd_bench deleted file mode 100755 index 0db9a46..0000000 --- a/dd_bench +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -for i in {0..4}; do -echo "WRITE SPEED" -dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc -echo - -echo "READ SPEED" -echo 3 > /proc/sys/vm/drop_caches -dd if=tempfile of=/dev/null bs=1M count=1024 -echo - -echo "BUFFERED READ SPEED" -dd if=tempfile of=/dev/null bs=1M count=1024 - -rm tempfile -done - diff --git a/dd_benchmark b/dd_benchmark new file mode 100755 index 0000000..0db9a46 --- /dev/null +++ b/dd_benchmark @@ -0,0 +1,18 @@ +#!/bin/sh + +for i in {0..4}; do +echo "WRITE SPEED" +dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc +echo + +echo "READ SPEED" +echo 3 > /proc/sys/vm/drop_caches +dd if=tempfile of=/dev/null bs=1M count=1024 +echo + +echo "BUFFERED READ SPEED" +dd if=tempfile of=/dev/null bs=1M count=1024 + +rm tempfile +done + diff --git a/mdstat b/mdstat new file mode 100755 index 0000000..fc86d3a --- /dev/null +++ b/mdstat @@ -0,0 +1,6 @@ +#!/bin/zsh + +S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}'