github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

luke0x / drefile

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 8
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

An automatic, chronological file organizer — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

 - incorporate changes from jamiew http://gist.github.com/138997 
luke0x (author)
Thu Jul 02 17:15:18 -0700 2009
commit  245f0bb15be9a0181d615c797347d60f8eac32ef
tree    38fedaf73a83e17fa3245ebff4f5498620754c62
parent  e77012fe2b2a3cc3396247731f4926fde7e8d8bb
drefile /
name age
history
message
file README Loading commit data...
directory bin/
README
drefile: an automatic, chronological file organizer
---------------------------------------------------
Every few minutes drefile copies all files on your Desktop to a folder
such as ~/Documents/2009-06-June/26-Friday, prepending a timestamp
(like 20090626.1310) to the filename.

Use
---
1. Put files on your Desktop, and in a few minutes they will be 'drefiled'
2. Use the 'Today' alias on your Desktop to go to today's folder
3. Type 'dday' to go to today's directory
4. Type 'dmonth' to go to this month's directory
5. Type 'drefile file' to manually timestamp + move a file

Install
-------
1. `sudo port install osxutils` # requires mkalias
2. `sudo gem install open4`
3. copy the 3 files in /bin to ~/.bin (or whatever, in the path)
4. `chmod +x` the 3 files
5. `crontab -e` one of these (as your user):
  # run every 5 minutes on the 5
  0,5,10,15,20,25,30,35,40,45,50,55 * * * * /HOME_DIRECTORY/.bin/drefile >> /HOME_DIRECTORY/.bin/drefile_cron.log
  # run once/day at 5am
  * 5 * * * /HOME_DIRECTORY/.bin/drefile >> /HOME_DIRECTORY/.bin/drefile_cron.log
6. add to ~/.profile:
  dday(){
    eval $(~/.bin/dday.rb)
  }
  dmonth(){
    eval $(~/.bin/dmonth.rb)
  }
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server