[ Firefox searcher ] - Mon 25 May 2020

Our goal is to be able to search our Firefox history -- as well as the currently opened tabs -- from the terminal.

We are going to create two scripts, one called history_search.py to search our history, and one called switch_tabs.py to show and select from the currently opened tabs …

[ Advanced code folding ] - Sat 18 April 2020

Outshine is a package for Emacs that allows you to do manual code folding. The advantage of this over syntactic folding is that you can define arbitrary blocks of code and move them around like in the webm above.

Outshine is a outline mode extension, so similar keymaps are defined …

[ Monoterm ] - Sat 18 April 2020

Do you have trouble with keeping too many terminals open?

Have you tried tmux, but can't keep attaching and detaching from sessions efficiently?

After struggling with these issues, I've written a script to be bound to a keymap in Openbox (or whatever window manager you prefer) that automatically finds the …

[ eval and replace ] - Thu 16 April 2020

Often when working with Lisp, you want to evaluate expressions. This is easily done in Emacs by leaving the cursor after the expression, and hitting C-x C-e to see the value in the minibuffer.

However, sometimes you want to replace the value of an expression directly with its evaluation. The …

[ Automated git deployment ] - Thu 16 April 2020

For deploying content on this site, I've set up a git hook to generate the Pelican files. Here's the breakdown:

  1. Create a deployment directory on the production server, in my case its a directory called pelican/ containing content, theme, and configuration files.
  2. Add a bare repo to the server somewhere …