-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
# | ||
# Creates something for me to do. | ||
# | ||
# I've used literally every todo list, app, program, script, everything. Even | ||
# the ones you are building and haven't released yet. | ||
# | ||
# I've found that they're all nice in their nice ways, but I still don't use | ||
# them, thus defeating the purpose of a todo list. | ||
# | ||
# All `todo` does is put a file on my Desktop with the filename given. That's | ||
# it. I aggressively prune my desktop of old tasks and keep one or two on there | ||
# at a time. Once I've finished a todo, I just delete the file. That's it. | ||
# | ||
# Millions of dollars later and `touch` wins. | ||
set -e | ||
|
||
# Run our new web 2.0 todo list application and raise millions of VC dollars. | ||
touch ~/Desktop/"$(echo $@)" |
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But will this "change the way people do to-dos" ❓
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤘
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an internet online advertising campaign. Please put this on your weblogs.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I built a hosted alternative. As a service. In the cloud.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, people already made this joke on Twitter.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
holman this is not web scale because it not use php please fix immediately
if use php this would be covered in ✨
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAHAHA. I like keeping my desktop empty, so this might work AHAHAH
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be pretty easy to convert to an alfred script. (and the done version as well)
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Epic.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 10/10 would copy to
~/bin
againHow much will the enterprise license cost?
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the on-premise version, contact us for a quote.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a Alfred workflow for it.
http://d.pr/f/VlXw
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been doing this for forever, with the difference of using SCREAMING_ALL_UPPERCASE titles to make them even more annoying :-)
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My Desktop is always messy and from time to time i just move everything to trash, so this approach probably won't work any good for me :(
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Very nice idea.
I Added the number of remainings task in my PS1 thanks to very nice TODO HATEOAS API :D
lyrixx/dotfiles@2890bf5
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have also created an Alfred Workflow, but you can even delete items from Alfred with it. And it has icons.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@holman Sometimes, your awesomeness, does it bother you?
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going along w/ the Alfred-2-Workflow thing.. tried to enhance what @Pym + others have already done here: Alfred Desktop Todo's
Thx for the tips everyone! 🍻
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was having trouble compiling this program. Here is the output:
It finally compiled with
just by trying it over and over.
The script was pretty slow so I added -O3. Bad idea. My PSU led started flickering upon execution and things became unresponsive. Luckily I was on a Linux system so I could ctrl+alt+delete and use the start menu to open the defragmenting tool.
Once the hard drive finished defragmenting I started to look around in the codebase for what could have caused behavior like that. I ended up writing this python script to write out versions of the program for each line, with that line missing, in order to trace the behavior back.
I spent a while executing them each by hand until I found the issue, at line 13. For context, line 13 is
I think it is a hardware bug.
To test my suspiscions I contacted the manufacturer of my hard drives. I provided them with conditions to reproduce the bug, and they confirmed with the following reply
Fixing this issue has been quite an adventure! Hopefully line 13 will be omitted in future versions.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PaytonTurnage It's a bash script, you don't compile it. You just run it either with
~/bin/todo
orbash ~/bin/todo
.d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PaytonTurnage I enjoyed the part where the manufacturer confirmed the defect by your email getting bounced back from the mail server.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pro Tip: make your files gargantuan in os x:
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funny, my todo.txt (~40K lines, lowest tech possible) is about 25 years old now, and has been edited in some form of emacs ever since the beginning.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpryland when do you think you'll get to the last 30K?
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like my desktop empty but this won't work for me - I don't even have desktop icons:
On a more relevant note, I'm curious as to why
touch /tmp/"$@"
doesn't work. I expected it to, but it trims down to the first work - even though it's quoted! 😞 Why did you need to"echo $@"
?d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest code is: https://github.com/holman/dotfiles/blob/master/bin/todo
You might want to replace the path with whatever the path to your desktop is.
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@holman: Thanks, though my point was more of "I don't like desktop icons, and my desktop environment doesn't even support showing them." 😄 .
Why does
$@
not work? if I may ask? Shouldn't it expand to all the arguments?d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some interesting clarification in: http://unixhelp.ed.ac.uk/scrpt/scrpt2.2.2.html
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! ☺
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahahahahahaahah, I loved it!
d774e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Powershell version for Windows hehe: