rofi: Matching and Sorting
rofi

rofi: Matching and Sorting

This is the fifth in a series of several posts on how to do way more than you really need to with rofi. It’s a neat little tool that does so many cool things. I don’t have a set number of posts, and I don’t have a set goal. I just want to share something I find useful. This post looks at configuring rofi’s matching and sorting. Assumptions Code Overview Comparison Basic Sort Config (Yet Another) rofi Options Script Full Script Change Matching and Sorting Via a modi Assumptions I’m running Fedora 27.

  • CJ Harries
    CJ Harries
rofi: Change Window Location
rofi

rofi: Change Window Location

This is the fourth in a series of several posts on how to do way more than you really need to with rofi. It’s a neat little tool that does so many cool things. I don’t have a set number of posts, and I don’t have a set goal. I just want to share something I find useful. This post looks at changing rofi’s window location. It also introduces some rofi dmenu usage to handle input and ends with a introduction to script modi.

  • CJ Harries
    CJ Harries
CLI

Remove Consecutive Duplicate Lines With awk

I ran into an interesting problem yesterday. At some point, while scripting updates to a collection of repos, I managed to duplicate a few lines in several files. I ended up with something like this: README.md 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 # `dotfiles-role-javascript` # `dotfiles-role-javascript` [![Build Status](https://travis-ci.org/thecjharries/dotfiles-role-javascript.svg?branch=master)](https://travis-ci.org/thecjharries/dotfiles-role-javascript) [![GitHub tag](https://img.shields.io/github/tag/thecjharries/dotfiles-role-javascript.svg)](https://github.com/thecjharries/dotfiles-role-javascript)

  • CJ Harries
    CJ Harries
Ubuntu Notes: Unlocking /var/lib/dpkg
Vagrant

Ubuntu Notes: Unlocking /var/lib/dpkg

I ran into some issues this morning setting up a Xenial box via Vagrant. On boot, /var/lib/dpkg was totally locked with nothing I knew to link it to in ps aux. I’ve created a fairly novel solution; my point today was to learn about something new. You should have a basic familiarity with the Linux CLI. If you don’t know what systemd is, that’s not a big deal. Skip to my take on a full solution if you’d like, but make sure to read the disclaimer first.

  • CJ Harries
    CJ Harries
NPM Lifecycle Stages: A Study in Stream Editors
NPM

NPM Lifecycle Stages: A Study in Stream Editors

A majority of my work, both business and pleasure, is done in Node. I support a fairly large codebase which always needs maintenance. As I get new ideas or learn new techniques, the codebase grows. No matter how organized I try to be, every project seems to spawn half a dozen new projects. New projects means new config and packages and builds and instead of doing things the right way, I’ve just been shuffling a few master files around.

  • CJ Harries
    CJ Harries