Clip Text File: more surprisingly handy dumb tricks

As you may know, I store a lot of information in plain text files. Among the things I enjoy about this has always been that I can grab the contents of any file straight to the clipboard — without opening it — when I’m on the command line. I just use and boom, done. I wrote a function a long time ago to make this a little safer and more convenient. It avoids clipping non-text files accidentally and provides a little feedback. macos, service, terminal

→ Continue reading

Scripting Jekyll image “uploads”

As I start blogging more with Jekyll, I find that manually placing the images in my source folder and typing out the resulting urls is a bit cumbersome. I know a lot of people have come up with solutions for this, but it was simpler to roll my own in the end. I’ve created a few ways of doing this on OS X. All of these methods will copy the image to an appropriate, date-based subfolder in your static blog’s source, optimize it if the tools are available and immediately place Markdown… jekyll, ruby, service

→ Continue reading