1 2 3

How to enable mouse-wheel scrolling and highlight-scrolling in tmux

It’s actually pretty simple.

If you’re using tmux version 2.1 or higher, then you’ll most likely just need to add the following to your .tmux.conf file:

set -g mouse on

Once you’ve saved that to your .tmux.conf file, you’ll need to restart the tmux server.

$ tmux kill-server
$ tmux # start tmux with new config

And now you should be able to use your mouse-wheel to scroll through your terminal buffer, as well as highlight text and have it scroll properly.

Struggling to understand what the symbols and characters mean in Clojure?

In Clojure, there are a lot of funky symbols and it may be difficult to Google for the meaning of such characters, which is exactly why this page exists!

Not seeing any form controls when editing Visual Composer’s Text Block elements?

If you’re not seeing any form controls such as font size, paragraph settings, etc., when editing a Visual Composer Text Block element, that may be because of your WordPress user profile settings.

  1. In the WordPress Dashboard, click on Users on the left.
  2. Find your user account in the list.
  3. Select ‘edit’.
  4. There will be an option called: “Disable the visual editor when writing”
  5. If it’s checked, uncheck it to re-enable the visual editor.

Sendmail: receiving all mail, and routing it to a single address

Sendmail is a very simple mail program. To my surprise, I discovered it could also receive mail.

What prompted me to use sendmail to receive email was the AWS email verification process. I didn’t want to go through a lot of configuration steps just to receive a verification email.

Anyway, the feature that will allow you to receive all mail, regardless of the address, is the virtusertable file in /etc/mail/.

I used this guide when setting up this feature.

In order to enable the virtual user table, you need to add it to your /etc/mail/sendmail.mc file.

Note, every time you change your /etc/mail/sendmail.mc you’ll need to run sudo make -C /etc/mail.

This was also a helpful resource in setting up sendmail.

Remember this when trying to get the ‘page’ parameter from a pretty URL in WordPress

In WordPress, if you use pagination using pretty permalinks, and your URL looks like this: /products/page/2

In order to access that parameter, you’ll need to use this: get_query_var('paged').

Notice how in the URL the parameter is called ‘page’, but in code it’s accessed via ‘paged’.

1 2 3