[wellylug] Take a hint

Nick Jensen spoonfella at hotmail.com
Tue Sep 7 10:03:33 NZST 2004


Thanks Grant, that's pretty cool. I quite like inventing helpful little 
systems like this for my personal use - although I don't think anything I've 
written is interesting enough to be posted here.
I found it particularly refreshing to see a post that was volunteering 
something useful, rather than administrivia or politics (I hope this doesn't 
get seen as the latter). Questions and answers are of course the bread and 
butter of the list, but I find this sort of thing particularly interesting.

    Nick


>From: Grant McLean <grant at mclean.net.nz>
>Reply-To: wellylug at lists.wellylug.org.nz
>To: WellyLUG <wellylug at lists.wellylug.org.nz>
>Subject: [wellylug] Take a hint
>Date: Mon, 06 Sep 2004 21:36:44 +1200
>
>I've devised a very simple memory aid that has been proving
>useful, so I thought I'd share it here.  The concept is a file
>full of one-line 'hints' and an alias for grepping from it.
>
>For example, if I want to refresh the keys in my GPG keyring,
>I type:
>
>   hint refresh
>
>and get this in response:
>
>   gpg refresh keys:
>   gpg --keyserver pgp.mit.edu --refresh-keys
>
>Then I cut and paste the command (triple left click + middle click)
>to run it.
>
>
>For a bit of background, I have put my 'dot files' into a CVS
>project.  I check the project out into ~/.common_configs on each
>host where I want my familiar aliases etc.  The project includes
>an 'install' script which I run to symlink the relevant files
>into my home directory.
>
>My .bashrc includes this function definition to implement the
>'hint' command:
>
>   function hint() {
>     test -n "$*" && sed -n "/$*/Is/^\([^:]*:\) *\(.*\)$/\1\n\2\n/p"
>~/.common-configs/hints
>   }
>
>and this alias for editing the hints file:
>
>   alias vihints='vi ~/.common-configs/hints'
>
>and this is what's in the hints file right now (including a few
>extra newlines which my mailer has thrown in for free):
>
>cvs import: cvs -d ":ext:grant at my.cvs.server/cvs" import -m "comment"
>modname grant start
>cvs checkout: cvs -d ":ext:grant at my.cvs.server/cvs" co -d
>.common_configs grant/configs
>cvs fix comment: cvs admin -m 1.12:"replacement commit message here"
>cvs create branch: cvs tag -b branch-name
>Debian which package owns a file: dpkg -S file
>Debian list all files in package: dpkg -L package
>gpg refresh keys: gpg --keyserver pgp.mit.edu --refresh-keys
>gpg download a key: gpg --keyserver pgp.mit.edu --recv-key 0xDEADBEEF
>gpg upload a key: gpg --keyserver pgp.mit.edu --send-key 0xDEADBEEF
>deb new upstream release:uupdate -u sshmenu-applet-2.03.tar.gz (from in
>old build dir)
>Perl build into private lib dir:perl Makefile.PL LIB=~/perl/lib
>Perl coverage report:cover -delete; HARNESS_PERL_SWITCHES=-MDevel::Cover
>make test; cover
>add image border:convert -border 1x1 -bordercolor black infile outfile
>back up palm:pilot-xfer -p /dev/ttyUSB1 --backup .
>
>
>Cheers
>Grant
>
>
>--
>Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
>To Leave:  http://lists.wellylug.org.nz/mailman/listinfo/wellylug

_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @  
http://xtra.co.nz/jetstream




More information about the wellylug mailing list