Hacker News new | ask | show | jobs
by tep 5025 days ago
To log bits of information quickly I added this to my .bashrc:

log(){ date >> ~/log/$* ; cat >> ~/log/$* ; }

I try to keep it simple but I keep several files. There is one for general ideas which is called "projects", another one to log new words I've learnt called "voc.en" (English is a second language for me) and so on.

For example:

log projects <enter>

write something cool... <enter> <ctrl+c>

--------------------

cat log/projects

Mo 10. Sep 07:16:02 CEST 2012

write something cool...

2 comments

This is a great idea! I've been using text docs like this for a while, but the problem that keeps happening to me is I go open the file to add something to it, and get distracted by reading the stuff in the file and forget what I was about to add!

I'm going to try this CLI method since it'll be impossible to read old stuff and get distracted while trying to add something.

Here's my entry in my bash profile:

    log() {
      echo >> ~/Dropbox/NotationalVelocity/$*.txt ;
      date >> ~/Dropbox/NotationalVelocity/$*.txt ;
      cat >> ~/Dropbox/NotationalVelocity/$*.txt ;
    }
We'll see how this goes!
And if you have the log folder on dropbox, it is accessible everywhere.
Accessible everywhere, indeed. Doubly so for nosey Dropbox employees!
Why the downvote?

Just going from memory, their biggest security-breach PR disasters have been caused more often by sloppy employee security than by outside actors.