# HG changeset patch # User huston@80426f53-59d1-405d-934b-f07cd76f4a1a # Date 1261445608 0 # Node ID e07e18887175df9fc515c328463dd3b5e792d0a8 # Parent 9dfac1876cdf431f0c7fecea2468c87d51fe1215 Example html files and directory setup diff -r 9dfac1876cdf -r e07e18887175 dotfiles/.bash_aliases.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dotfiles/.bash_aliases.html Tue Dec 22 01:33:28 2009 +0000 @@ -0,0 +1,61 @@ + + + +~/.bash_aliases.html + + + + +# $Id: .bash_aliases 20 2009-11-25 18:43:02Z huston $
+
+# Aliases are read from this file; no real reason to separate them out except
+# for readability.
+
+case `uname` in
+   Darwin)
+      # DARWIN is used for the SSHFS mounts below
+      DARWIN="yes"
+      alias ls='ls -FG'
+      ;;
+
+   Linux)
+      alias ls='ls --color=auto -F'
+      ;;
+esac
+
+# SSH aliases
+alias dh='ssh srhuston.net'
+alias dvra='ssh dvra@laurel.dreamhost.com'
+alias j='ssh joshua.srhuston.net'
+alias r='ssh -l root'
+alias roc='ssh zenoss@rocinante'
+alias s=ssh
+alias x='ssh xanadu.astro.princeton.edu'
+
+# Remote desktop/VNC
+alias bynarr='rdesktop -a 16 bynarr -g 1593x1109'
+
+# Programs
+alias atari='atari800 -height 800 -width 600'
+alias base64='openssl enc -a'
+alias bsr='bigscreen -raAx'
+alias irssi-test='irssi --home=~/irssi-test/'
+alias ret='screen -raAx'
+alias rot13="tr 'a-zA-Z' 'n-za-mN-ZA-M'"
+alias stendhal="java -jar ~/Installs/stendhal/stendhal-*.jar"
+alias vi='vim'
+
+# SSHFS mounts
+# The $DARWIN check fills in a nice volname if this is a Mac
+alias junkpile="sshfs -oreconnect${DARWIN:+,volname=Junkpile} srhuston.net:junkpile ~/junkpile"
+alias sharm="sshfs -oreconnect${DARWIN:+,volname=Harmonic} harmonic.srhuston.net: ~/harmonic"
+alias sj="sshfs -oreconnect${DARWIN:+,volname=Joshua} joshua.srhuston.net: ~/joshua"
+alias sdh="sshfs -oreconnect${DARWIN:+,volname=srhuston.net} srhuston.net: ~/srhuston.net"
+alias sx="sshfs -oreconnect${DARWIN:+,volname=Xanadu} xanadu.astro.princeton.edu: ~/xanadu"
+
+# Other
+alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog /scr/chimera0/condor/hosts/*/log/MasterLog"
+
+# vim: set filetype=sh :
+
+ diff -r 9dfac1876cdf -r e07e18887175 dotfiles/.bash_logout.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dotfiles/.bash_logout.html Tue Dec 22 01:33:28 2009 +0000 @@ -0,0 +1,15 @@ + + + +~/.bash_logout.html + + + + +# $Id: .bash_logout 20 2009-11-25 18:43:02Z huston $
+#
+#if [ "$SSH_AGENT_PID" -a "$SHLVL" = "1" ] ; then
+#   eval `/usr/bin/ssh-agent -k`
+#fi
+
+ diff -r 9dfac1876cdf -r e07e18887175 dotfiles/.bash_profile.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dotfiles/.bash_profile.html Tue Dec 22 01:33:28 2009 +0000 @@ -0,0 +1,102 @@ + + + +~/.bash_profile.html + + + + +# $Id: .bash_profile 20 2009-11-25 18:43:02Z huston $
+#
+# This file is sourced for interactive login shells, or
+# non-interactive shells with the --login option.  So things which you
+# want to happen only on login shells should go here.
+
+# Get the aliases and functions
+if [ -f ~/.bashrc ]; then
+   . ~/.bashrc
+fi
+
+# User specific environment and startup programs
+
+# BASH_ENV is sourced for non-interactive shells; however, since we
+# source ~/.bashrc above I don't think we have to here also.
+# export BASH_ENV=$HOME/.bashrc
+
+# These lines are helpful if you routinely might login without passing an
+# ssh-agent's authentication through.  This way when you login, an agent is
+# exec'd for you (the corresponding lines in .bash_logout should kill the
+# agent when you logout, however they sometimes fail such as when killing your
+# shell without a proper logout or closing the connection).  I left it here,
+# though I personally don't use/need it anymore.
+
+#if [ "X$SSH_AUTH_SOCK" = "X" ] ; then
+#   eval `/usr/bin/ssh-agent`
+#fi
+
+# This part is quite useful if you have your dotfiles stored in subversion
+# (though it could be edited fairly easily for any other version control
+# system I'm sure).  We check the timestamp of the file '$HOME/.dotfilets'.
+# If it's older than a month, run a 'svn st -u' and touch it; this way we
+# check once per month to see if we forgot to pull down an updated version.
+
+# First set $STAT and $DATE since the syntax of the commands is different
+# between Linux and Mac OS X.  If this is run elsewhere, the eval will be
+# false and the test not done below, so it's safe to not bother checking for
+# zero-length variables on the test - it just won't run the svn status, so you
+# won't be prompted if there's newer files available in your repository.
+
+case `uname` in
+   Darwin)
+      DFSTAT="stat -f %m -t %s $HOME/.dotfilets"
+      MDATE="date -v -1m +%s"
+      TDSTAT="stat -f %m -t %s $HOME/.todo"
+      HDATE="date -v -1h +%s"
+      ;;
+
+   Linux)
+      DFSTAT="stat -c %Y $HOME/.dotfilets"
+      MDATE="date -d \"1 month ago\" +%s"
+      TDSTAT="stat -c %Y $HOME/.todo"
+      HDATE="date -d \"1 hour ago\" +%s"
+      ;;
+esac
+
+[[ ! -f $HOME/.dotfilets || \
+   `eval $DFSTAT` -lt `eval $MDATE` ]] && {
+   echo -n Dotfiles last checked over a month ago
+
+   # Here we switch for hosts we don't want to check, just warn
+   case `hostname -s` in
+      bt)
+         echo
+         touch $HOME/.dotfilets
+         ;;
+      *)
+         echo , running a status test.
+         svn st -u && touch $HOME/.dotfilets &
+   esac
+}
+
+# Work in progress - toodledo to ~/.todo
+#[[ -f $HOME/.todo ]] && cat $HOME/.todo
+#
+#case `hostname -s` in
+#   xanadu|rapture)
+#     TOODLEDO_CMD="hotlist"
+#     ;;
+#
+#   milton)
+#     TOODLEDO_CMD="tasks *Personal"
+#     ;;
+#esac
+#
+#[[ ! -f $HOME/.todo || \
+#   `eval $TDSTAT` -lt `eval $HDATE` ]] && {
+#   echo "To-do list as of `date`" > $HOME/.todo
+#   echo "---------------------------------------------" >> $HOME/.todo
+#   toodledo tasks >> $HOME/.todo &
+#}
+
+
+ diff -r 9dfac1876cdf -r e07e18887175 dotfiles/.bashrc.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dotfiles/.bashrc.html Tue Dec 22 01:33:28 2009 +0000 @@ -0,0 +1,131 @@ + + + +~/.bashrc.html + + + + +# $Id: .bashrc 20 2009-11-25 18:43:02Z huston $
+#
+# This file is sourced for shells which are interactive but not a
+# login shell; however, since it is also sourced within
+# $HOME/.bash_profile, the end result is that this file is sourced for all
+# shells.
+
+
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+   . /etc/bashrc
+fi
+
+# User specific aliases and functions
+if [ -f $HOME/.bash_aliases ]; then
+   . $HOME/.bash_aliases
+fi
+
+#
+# Environment variables
+#
+[[ "$PS1" ]] && export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+export PAGER=less
+export EDITOR=vim
+export RUBYLIB=$HOME/Installs/rubygems/lib
+export GEM_HOME=$HOME/Installs/rubygems/gems
+
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+xterm*|rxvt*)
+    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
+    ;;
+*)
+    ;;
+esac
+
+#
+# Paths
+#
+# Standard-ish paths; some of these may be in place already, but if
+# they're not they should probably go near the front of the pack.
+for P in /sbin /usr/sbin /usr/local/bin /usr/local/sbin \
+    /opt/local/bin /opt/local/sbin ; do
+   [[ "$PATH" =~ "(^|:)$P($|:)" ]] || \
+   export PATH=${P}${PATH:+:$PATH}
+done
+
+for M in /usr/local/share/man /usr/local/man /opt/local/share/man ; do
+   [[ "$MANPATH" =~ "(^|:)$M($|:)" ]] || \
+   export MANPATH=${M}${MANPATH:+:$MANPATH}
+done
+
+# Local Perl install
+if [ -d $HOME/perl ]; then
+   [[ "$PERL5LIB" =~ "(^|:)$HOME/perl($|:)" ]] || \
+   export PERL5LIB=$HOME/perl${PERL5LIB:+:$PERL5LIB}
+
+   if [ -d $HOME/perl/share/man ]; then
+      [[ "$MANPATH" =~ "(^|:)$HOME/perl/share/man($|:)" ]] || \
+      export MANPATH=$HOME/perl/share/man:${MANPATH:+$MANPATH}
+   fi
+
+   if [ -d $HOME/perl/bin ]; then
+      [[ "$PATH" =~ "(^|:)$HOME/perl/bin($|:)" ]] || \
+      export PATH=$HOME/perl/bin${PATH:+:$PATH}
+   fi
+fi
+
+# Local install paths - install things to $HOME/Installs directories, and
+# they will automatically get the proper paths added.  Most things
+# that use autoconf will do this with
+# './configure --prefix=$HOME/Installs'
+for D in $HOME/Installs/* ; do
+   if [ -d $D/bin ]; then 
+      [[ "$PATH" =~ "(^|:)$D/bin($|:)" ]] || \
+      export PATH=$D/bin${PATH:+:$PATH}
+   fi
+
+   if [ -d $D/share/man ]; then 
+      [[ "$MANPATH" =~ "(^|:)$D/share/man($|:)" ]] || \
+      export MANPATH=$D/share/man:${MANPATH:+$MANPATH}
+   fi
+  
+   if [ -d $D/man ]; then 
+      [[ "$MANPATH" =~ "(^|:)$D/man($|:)" ]] || \
+      export MANPATH=$D/man:${MANPATH:+$MANPATH}
+   fi
+done
+
+# Add-ons for Intel compilers at work, and Condor
+[[ -f /usr/peyton/intel/10.1/cc64/bin/iccvars.sh ]] && \
+   . /usr/peyton/intel/10.1/cc64/bin/iccvars.sh
+[[ -f /usr/peyton/intel/10.1/fc64/bin/ifortvars.sh ]] && \
+   . /usr/peyton/intel/10.1/fc64/bin/ifortvars.sh
+[[ -f /u/condor/condor-setup.sh ]] && {
+   export PATH=${PATH:+$PATH:}/u/condor/hosts/`hostname -s`/sbin
+   . /u/condor/condor-setup.sh
+}
+
+# Now make sure $HOME/bin is top of the list (or at least present)
+if [ -d $HOME/bin ]; then
+   [[ "$PATH" =~ "(^|:)$HOME/bin($|:)" ]] || \
+   export PATH=$HOME/bin${PATH:+:$PATH}
+fi
+
+# Last, make sure to end MANPATH with a ':' to force include of system paths
+# (some versions of man take care of this, but it doesn't hurt to have it
+# anyway)
+[[ "$MANPATH" =~ ":$" ]] || export MANPATH=$MANPATH:
+
+# Store MIBs in ~/mibs and they'll be added here.  Can nest directories
+# (they'll be searched).
+if [ -d $HOME/mibs ]; then
+   for D in `find $HOME/mibs -type d` ; do
+      [[ "$MIBDIRS" =~ "(^\+|:)$D($|:)" ]] || \
+      export MIBDIRS=${MIBDIRS:+$MIBDIRS:}$D
+   done
+
+   [[ "$MIBDIRS" =~ "^\+" ]] || export MIBDIRS=+$MIBDIRS
+   export MIBS=ALL
+fi
+
+ diff -r 9dfac1876cdf -r e07e18887175 dotfiles/.screenrc.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dotfiles/.screenrc.html Tue Dec 22 01:33:28 2009 +0000 @@ -0,0 +1,19 @@ + + + +~/.screenrc.html + + + + +# $Id: .screenrc 21 2009-11-25 20:39:48Z huston $
+
+vbell off
+bell_msg "^GBell in window %n"
+defnonblock 5
+nethack on
+hardstatus string "%{.bw}%-Lw%{.rw}%50L>%n%f* %t%?%{.cw}(%u)%{-}%?%{-}%+Lw%L< %-20=%{..g} %H%-8= %{..y} %c " 
+hardstatus alwayslastline
+activity "^GActivity in window %n"
+
+ diff -r 9dfac1876cdf -r e07e18887175 dotfiles/.vimrc.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dotfiles/.vimrc.html Tue Dec 22 01:33:28 2009 +0000 @@ -0,0 +1,26 @@ + + + +~/.vimrc.html + + + + +" $Id: .vimrc 20 2009-11-25 18:43:02Z huston $
+
+version 5.0
+set nocompatible
+set autoindent
+set cindent
+set mouse=a
+set smartindent
+set smarttab
+set tabstop=3
+syntax on
+set sw=3
+set bg=dark
+set textwidth=78
+set sm
+hi Normal guibg=black guifg=white
+
+ diff -r 9dfac1876cdf -r e07e18887175 dotfiles/Makefile