07/25/09 03:57 - 76ºF - ID#49376
Garden Walk?
Bring your ark.
Permalink: Garden_Walk_.html
Words: 9
Location: Buffalo, NY
Category: unix
07/22/09 10:27 - 65ºF - ID#49353
Terminal Tips
1. Always open new terminal windows in the location of the last directory that you cd'd to (source: ):
pathed_cd () {
if [ "$1" == "" ]; then
cd
else
cd "$1"
fi
pwd > ~/.cdpath
}
alias cd="pathed_cd"
if [ -f ~/.cdpath ]; then
cd $(cat ~/.cdpath)
fi
2. Erase duplicate entries from command history (source: ):
export HISTCONTROL=erasedups
shopt -s histappend
3. Allow partial matching of previous history instead of scrolling back through full history (note this one goes in .inputrc, source: ):
set bell-style none
- do not make noise
"e[B": history-search-forward
- By default up/down are bound to previous-history
- and next-history respectively. The following does the
- same but gives the extra functionality where if you
- type any text (or more accurately, if there is any text
- between the start of the line and the cursor),
- the subset of the history starting with that text
- is searched (like 4dos for e.g.).
- Note to get rid of a line just Ctrl-C
"e[A": history-search-backward
$if Bash
# F10 toggles mc on and off
# Note Ctrl-o toggles panes on and off in mc
"e[21~": "mcC-M"
#do history expansion when space entered
Space: magic-space
$endif
$include /etc/inputrc
- Include system wide settings which are ignored
- by default if one has their own .inputrc
4. Add status indicator for local changes to git or svn versioned directories (source: ):
parse_git_branch() {
- Prompt setup, with SCM status
local DIRTY STATUS
STATUS=$(git status 2>/dev/null)
[ $? -eq 1 ] || return
[[ "$STATUS" == *'working directory clean'* ]] || DIRTY=' *'
echo "($(git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* //')$DIRTY)"
}
parse_svn_revision() {
local DIRTY REV=$(svn info 2>/dev/null | grep Revision | sed -e 's/Revision: //')
[ "$REV" ] || return
[ "$(svn st)" ] && DIRTY=' *'
echo "(r$REV$DIRTY)"
}
PS1='u@h:W$(parse_git_branch)$(parse_svn_revision) $ '
5. Misc aliases.
alias ll="ls -lp"
- various ls aliases
alias la="ls -ap"
alias lla="ls -lap"
alias h="history | grep "
- shorthand to search history, "h blah"
alias o='open .'
- open current directory in finder
alias san='svn status | grep "^?" | awk "{print $2}" | xargs svn add'
- add all new files, which aren't ignored, to svn repo
Permalink: Terminal_Tips.html
Words: 411
Location: Buffalo, NY
Category: internets
07/22/09 09:59 - 65ºF - ID#49352
I hate spammers.
Presented as an image so not as to help them out.
I know, spam is nothing new, but this is why we can't have nice things :(
Permalink: I_hate_spammers_.html
Words: 41
Location: Buffalo, NY
Category: deliciousness
07/21/09 10:03 - 67ºF - ID#49342
Steak Cake
Permalink: Steak_Cake.html
Words: 21
Location: Buffalo, NY
Category: vacation
07/20/09 08:53 - 59ºF - ID#49336
Finger Lakes Weekend Trip
A short video:
The drive up was rainy:
But the rest of the trip had nice weather:
180 degree Panorama ( full size ):
It was a lot of fun, except for James didn't feel so hot yesterday and somehow I had to make about 6 trips over 2 days to the local Shur-Fine grocery store.
Thanks guys!
Permalink: Finger_Lakes_Weekend_Trip.html
Words: 89
Location: Buffalo, NY
07/17/09 07:53 - 61ºF - ID#49321
Weekend Away
Hope weather is better tomorrow.
Permalink: Weekend_Away.html
Words: 11
Location: Buffalo, NY
07/14/09 11:56 - 66ºF - ID#49288
Weird Cabbagey Stuff
Seoul Garden
Permalink: Weird_Cabbagey_Stuff.html
Words: 8
Location: Buffalo, NY
Category: internets
07/14/09 08:30 - 59ºF - ID#49285
World's Fastest
Permalink: World_s_Fastest.html
Words: 10
Location: Buffalo, NY
Category: add
07/13/09 06:30 - 68ºF - ID#49279
Pomodoro Technique
I love this, have been using it for a couple months to pace myself, even out the manic over-doing it bursts and the can't-seem-to-get-started lows.
Pomodoro Technique Site
The Pomodoro Technique is a time management method that can be used for any kind of task. For many people, time is an enemy. The anxiety triggered by "the ticking clock", especially when a deadline is involved, leads to ineffective work and study habits which in turn lead to procrastination.
What do you need to start?
- A kitchen timer
- A sheet of paper
The basic unit of work in the Pomodoro Technique can be split in five simple steps:
- Choose a task to be accomplished
- Set the Pomodoro to 25 minutes (the Pomodoro is the timer)
- Work on the task until the Pomodoro rings, then put a check on your sheet of paper
- Take a short break (5 minutes is OK)
- Every 4 Pomodoros take a longer break
Permalink: Pomodoro_Technique.html
Words: 164
Location: Buffalo, NY
07/13/09 12:56 - 71ºF - ID#49278
Yay Rock Salt
Beef on Weck
Permalink: Yay_Rock_Salt.html
Words: 8
Location: Buffalo, NY
Author Info
Date Cloud
- 07/11
- 04/11
- 02/11
- 10/10
- 09/10
- 08/10
- 07/10
- 06/10
- 05/10
- 04/10
- 03/10
- 02/10
- 01/10
- 12/09
- 11/09
- 10/09
- 09/09
- 08/09
- 07/09
- 06/09
- 05/09
- 04/09
- 03/09
- 02/09
- 01/09
- 12/08
- 11/08
- 10/08
- 09/08
- 08/08
- 07/08
- 06/08
- 05/08
- 04/08
- 03/08
- 02/08
- 01/08
- 12/07
- 11/07
- 10/07
- 09/07
- 08/07
- 07/07
- 06/07
- 05/07
- 04/07
- 03/07
- 10/06
- 04/06
- 03/06
- 01/06
- 12/05
- 11/05
- 10/05
- 09/05