Updated: 2012-12-13 15:50 EST

1 Readings, Assignments, Labs, and ToDoIndexup to index

2 Final Exam - December 10 3pmIndexup to index

2.1 Four Practice TestsIndexup to index

There are four sets of practice questions available, one of which (on Blackboard only) is a cumulative union of the three practice tests plus both midterm tests:

2.2 Final Exam ResultsIndexup to index

Scores: 98.6 97.3 95.3 95.3 95.3 95.3 92.6 91.9 91.9 91.9 91.2 89.9 89.9 89.2 89.2 87.2 87.2 86.5 85.8 85.8 84.5 81.8 79.7 79.7 79.7 79.7 79.7 79.7 77.7 75 72.3 72.3 72.3 71.6 70.3 69.6 69.6 69.6 68.2 67.6 67.6 66.9 66.9 65.5 65.5 62.8 62.8 62.2 61.5 61.5 61.5 61.5 60.8 56.1 55.7 54.7 53.4 53.4 52.7 52 51.4 50.7 50 50 45.9 45.3 45.2 44.6 44.6 44.6 43.9 43.9 43.9 42.6 41.2 40.5 39.9 39.9 39.2 38.5 37.8 37.2 34.5 33.8 33.1 31.1 30.4 29.1 28.4 26.4 26.4 24 23.6 23 21.6 15.5 6.8

2.2.1 Did not Read All The WordsIndexup to index

The first and last questions on every exam were the same. They asked “Did you read all the words of the test instructions at the start of this test?” The test instructions gave the correct answer to both of these questions - two free marks. The answer was located one half inch (1 cm) above the question on the first page of the test; all you had to do was actually read all the words, just as the question asked.

Number of students who got one or both of these questions wrong: 18 (out of 99), which should be impossible because by answering “Yes” to “Did you read all the words”, you would have read the correct answer. Conclusion: People don’t read all the words, and they are willing to lie about it.

Read All The Words

Read All The Words

3 Lecture Notes for This WeekIndexup to index

Ignoring Advice 

3.2 From the Classroom Whiteboard/ChalkboardIndexup to index

4 Your in-class notes go here - take notes in class!Indexup to index

Remember 

If you’re not actively taking notes in class, why are you here?

5 Real Sysadmin WorkIndexup to index

More HTTP attacks on my web server:

ns367672.ovh.net - - [29/Nov/2012:11:20:39 -0500] "GET /cstech/bootdisk.htm/cart.php?a=ProlinkIRC&templatefile=../../../configuration.php%00 HTTP/1.1" 404 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; rev1.2; Windows NT 5.1;)"
ns367672.ovh.net - - [29/Nov/2012:11:20:39 -0500] "GET /cart.php?a=ProlinkIRC&templatefile=../../../configuration.php%00 HTTP/1.1" 404 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; rev1.2; Windows NT 5.1;)"
ns367672.ovh.net - - [29/Nov/2012:11:20:39 -0500] "GET /cstech/cart.php?a=ProlinkIRC&templatefile=../../../configuration.php%00 HTTP/1.1" 404 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; rev1.2; Windows NT 5.1;)"

Linux computer inside a mint tin: http://www.bendobson.co.uk/2012/06/27/minty-raspberry/

5.1 My Personal Sysadmin ToolkitIndexup to index

5.1.1 I keep a huge history, with time stamps, no duplicates:Indexup to index

export HISTFILESIZE=1000000
_temp=$( [ -r /proc/meminfo ] && awk '
     $1 == "MemTotal:" { big=int($2/1000); exit }
     END { print (big) ? big : 1000 }
    ' /proc/meminfo )
export HISTSIZE=${_temp:-1000}
export HISTTIMEFORMAT=
export HISTCONTROL=ignoredups
# output last exit status and append new lines to history file:
export PROMPT_COMMAND='status=$? ; [ $status -ne 0 ] && echo 1>&2 "Exit $status" ; history -a'
# turn on history; allow !! history; append to history file:
set -o history
set -o histexpand
shopt -s histappend

5.1.2 Variables (also used by the Aliases below):Indexup to index

tauth=/var/log/auth.log
tcups=/var/log/cups/error_log
thttp=/var/log/apache2/access.log
thttpe=/var/log/apache2/error.log
tmail=/var/log/mail.log
tsyslog=/var/log/syslog

5.1.3 Aliases and Shell Functions:Indexup to index

alias a='alias'

alias j='jobs -l'
alias jj='jobs -l'
alias 1='%1'
alias 2='%2'
alias 3='%3'
alias 4='%4'
alias 5='%5'
alias 6='%6'
alias 7='%7'
alias 8='%8'
alias 9='%9'
function - () { %- }

alias 00='pushd +0'
alias 11='pushd +1'
alias 22='pushd +2'
alias 33='pushd +3'
alias 44='pushd +4'
alias 55='pushd +5'
alias 66='pushd +6'
alias 77='pushd +7'
alias 88='pushd +8'
alias 99='pushd +9'
alias d='dirs -v'
alias b='popd'
alias pd='pushd'
alias sd='pushd'
function del () { popd +"$@" }
alias save='dirs -l -p >| "$_CWD"'
function here () ...
function me () { pushd "$HOME"/"$@" }
alias bksd='pushd "${back[0]}" >/dev/null && pushd'

alias cp='cp -i -p'
alias mv='mv -i'
alias scp='scp -p'
alias grep='grep --color=auto'
alias l='less'

alias df='df -k'
alias dfn='dfnn -h'
alias dfnn='df -x debugfs -x tmpfs -x usbfs -x nfs -x iso9660 -x none -x udf -x unionfs -x devtmpfs'

alias h='history'
alias hh='history | sort -rn | sort -u -k 2 | sort -n'
function hg () { history | grep --color=auto -e "$*" | sort -u -k 2 | sort -n }
function hv () { HISTTIMEFORMAT="%s %c " history | grep --color=auto -e "$*" | sort -n -k 2 | uniq -f 1 }
alias savehist='history -a'
alias loadhist='savehist && history -r'

alias ls='ls -abp --color=auto'
alias lsl='ls -l'
alias lsld='lsl -d'
alias lsll='lsl -L'
alias lslt='lsl -t'
function lsltl () { ls -abp --color=auto -l -t "$@" | less }
function lslth () { ls -abp --color=auto -l -t "$@" | $head1 }
function lslthh () { ls -abp --color=auto -l -t "$@" | $head2 }
alias lsltr='lslt -r'

alias tauth='ttail $tauth'
alias tauthh='tac $tauth | grep -v -e " CRON" | hhead | tac'
alias tcups='ttail $tcups'
alias thttp='ttail $thttp | grep -v http.monitor'
alias thttpe='ttail $thttpe | grep -v http.monitor'
alias tlog='tsyslog'
alias tsys='tsyslog'
alias tsyslog='ttail $tsyslog'
alias tmail='ttail $tmail'
alias tmes='tac $tmessages | grep -v -e "-- MARK --" -e "modprobe: WARNING: Not loading blacklisted module ipv6" | hhead | tac'
alias tmess='tac $tmessages | grep -v -e "-- MARK --" -e "modprobe: WARNING: Not loading blacklisted module ipv6" -e " pppd" -e " hdparm: " -e "sh/doroute" -e "ppp/ip-up" -e " rsyncd" -e " sshd" | hhead | tac'
alias tsec='ttail $tsecure'

alias trace='strace'

alias xtl='dset ; savehist ; command xtl'
alias xtu='dset ; savehist ; command xtu'

5.1.4 My cover scripts for system commands:Indexup to index

for f in $( cd /bin && ls ; cd /usr/bin && ls ) ; do
    if [ -s "bin/$f" ] ; then
        wc -l "bin/$f" | awk '{print $2, $1}'
    fi
done

bin/cp 3
bin/df 5
bin/tar 8
bin/a2ps 13
bin/du 3
bin/exifautotran 81
bin/firefox 24
bin/html2text 11
bin/mail 25
bin/mtr 8
bin/mutt 26
bin/print 68
bin/rename 123
bin/scp 68
bin/script 40
bin/startx 25
bin/wget 3

5.1.5 Lots and lots of little scripts:Indexup to index

$ ls ~/bin | wc
273     273    2255
Author: 
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

Plain Text - plain text version of this page in Pandoc Markdown format

Campaign for non-browser-specific HTML   Valid XHTML 1.0 Transitional   Valid CSS!   Creative Commons by nc sa 3.0   Hacker Ideals Emblem   Author Ian! D. Allen