Useful shell scripts

Placing little scripts in your ~/bin directory makes it abundantly clear why some people love shell scripting, and some jobs require shelll scripting as a skill. It seriously improves the speed and ease of life. Here are a few that I enjoy: Crashplan Because I sometimes need to micromanage my backup software and the software doesn’t function if I try linking it to another folder this simplifies things. #!/bin/bash # file: /~/bin/crash CRASHPLAN_DIR=/usr/local/crashplan/bin cd $CRASHPLAN_DIR; sudo .

Read more

Share Comments

Find Gateway on Linux

For quick reference: how do I find my gateway on linux? (Needed to access your router’s web interface) $ netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0

Read more

Share Comments

Saving Window configs in Emacs (in-session)

Sometimes I end up with complex window configs while working in emacs, as you see in the title image. Using Winner mode you can easily track linearly backward through your screens, “undo” style; but sometimes I have a set up–as when developing a system–that I want to return to frequently. It turns out you have Window Registers for this purpose, and they work well. window-configuration-to-register: C-x r w <key> This saves it for easy reloading with C-x r j <key> and you’re back where you want to be!

Read more

Share Comments

Easy cross-site slide-show

I recently implemented a small slide-show banner for showcasing products, in this case books, that works across sites. I did it with a nice JQuery slideshow plugin and iframes. I happened to be inserting it into Wordpress pages. The Problem My client has three separate websites he uses for distinct blogs, but as an author he wants to showcase the books he’s published on each of them. It will be a major problem to implement three distinct solutions, even if they are identical, for each blog, and update each one whenever something changes (such as a new book coming out).

Read more

Share Comments

Book Review: Clojure Cookbook: Recipes for Functional Programming

Clojure Cookbook: Recipes for Functional Programming by Luke VanderHart My rating: 4 of 5 stars An excellent book, not only as a reference but as a learning resource. It is by no means written as a general entry point to Clojure, but provides terse, practical, fast-paced insight with just enough explanation to be as instructive as it is useful. The quality of the “discussion” portions means this is good for more than just copy-paste reading, while the emphasis on projects and practicality make it a pre-eminent go-to as you refine your Clojure skills.

Read more

Share Comments

Fast Audio CD Ripping on Linux (2015)

I’m running Fedora 20 on an Ultra-book, meaning I am using an external (USB) CD drive. Wanting to reclaim my Mozart, I stuck it in and soon found the K3B tool for burning and ripping (as a KDE user, it was readily available); but to my horror, it was ripping at 0.5 speed. Having 20 minutes of music take over 40 minutes to rip and encode is certainly not viable, so I began looking around and tried a host of different tools.

Read more

Share Comments

Emacs for Study: PDF Conversion and Editing

Sometimes in the process of studying it is desirable to take the papers you are researching, which usually come as PDFs, and to convert them to an editable form. After you’re finished editing the final product could be PDF, Microsoft Word, web HTML, or something else. As this is a process that I’ve required for a number of different reasons, this tutorial covers the tools I use. Unlike other tutorials I’ve done, this process utilizes several tools beyond emacs.

Read more

Share Comments

Writing with Closed Eyes

I close my eyes and begin to type. In my mind, a mixed media of verbal and image information is passing through. Sometimes I am hearing the words that I am putting to the paper, other times I am seeing a page of writing which I am transcribing. The goal is two-fold: on the one hand, I am aiming for speed of production. On the other hand, I am harvesting focus.

Read more

Share Comments

Emacs save custom agenda filter views

If you work much with the Orgmode agenda you soon find that you can have a huge amount of appointments and todo tasks to deal with. You can sort these by putting tags on the, either straight from the agenda view (with :) or in the actual org file (with C-c while point is over a headline). You can then use those tags to filter and search your agenda (from agenda view, with / and \ followed by TAB).

Read more

Share Comments

Orgmode Agenda in New Frame Window

If you work much with the Orgmode agenda you soon find that you can have a huge amount of appointments and todo tasks to deal with. You can sort these by putting tags on the, either straight from the agenda view (with :) or in the actual org file (with C-c while point is over a headline). You can then use those tags to filter and search your agenda (from agenda view, with / and \ followed by TAB).

Read more

Share Comments