i3 shortcuts for monitors

Remembered about and updated the shortcuts for focusing the different monitors:

# focus outputs screen
bindsym $ms+a focus output eDP-1
bindsym $ms+o focus output HDMI-2
bindsym $ms+e focus output DP-1-1

Connected to me remembering about the tabbed layout:

# change container layout (stacked, tabbed, toggle split)
bindsym $ms+s layout stacking
bindsym $ms+Shift+t layout tabbed
bindsym $ms+Shift+s layout toggle split

takes less space than my usual stacked, but makes it hard to focus a different screen via left/right - until now.

bash rm multiple folders

For removing multiple folders if it has to be done often, and the folders may or may not be there, esp. with wildcards, current best option I found is not to do rm -rf one/* two/*something* three but rm -rf one/* && rm -rf two/*something* && rm -rf three. If one breaks the other ones will still run.

zsh removing an alias + zsh feature of ‘you sure you want to delete all N files from… ‘ + rm -r **

  • unalias rm 1
  • The feature can be removed by an option, but this is nice:

    I don’t know why but the following works for me - no questions asked [..]

    rm -rf **

Works for me too.

Random / phrases

That answers a question, but not this one! :) – Lambart Jul 28 ‘17 at 0:43 2

Intellij Ideavim full list of keybindings + configured movements.

ideavim/package-info.java at master · JetBrains/ideavim

 * |CTRL-B|               {@link com.maddyhome.idea.vim.action.motion.scroll.MotionScrollPageUpAction}
 * |CTRL-D|               {@link com.maddyhome.idea.vim.action.motion.scroll.MotionScrollHalfPageDownAction}
 * |CTRL-F|               {@link com.maddyhome.idea.vim.action.motion.scroll.MotionScrollPageDownAction}
 * |<BS>|                 {@link com.maddyhome.idea.vim.action.motion.leftright.MotionLeftWrapAction}
 * |CTRL-H|               {@link com.maddyhome.idea.vim.action.motion.leftright.MotionLeftWrapAction}

Half-page-down (<Ctrl-D>) doesn’t work in the output of running programs / debuggers, but <Ctrl-F> always does. (And <Page Down> too, ofc.)

ls -l, last modified and files from last year

me@server:/some/folder$ ls -larh ..
total 290M
drwxr-xr-x  3 me users 4.0K Jul  7 16:51 file
drwxr-xr-x  4 me users  12K Jul  7 16:51 file
drwxr-xr-x  4 me users 4.0K Jul  7 16:42 file
drwxr-xr-x  2 me users 4.0K Jul  7 16:32 file
drwxr-xr-x  4 me users 4.0K Jul  7 16:32 file
-rw-r--r--  1 me users    0 Jul  7 16:19 file
-rw-r--r--  1 me users 4.0K Jul  7 16:19 file
-rw-r--r--  1 me users    0 Jul  7 16:31 file
-rw-r--r--  1 me users 1.6K Jul  7 16:32 file
-rw-r--r--  1 me users 144M Oct  1 13:23 file
drwxr-xr-x  7 me users 4.0K Oct  1 13:35 file
-rwxr-xr-x  1 me users 4.9K Oct  2  2019 file
-rw-r--r--  1 me users  46K Oct  4  2019 file
-rw-r--r--  1 me users  45K Oct  2  2019 file
-rw-r--r--  1 me users 146M Oct  2  2019 file
drwxr-xr-x  2 me users 4.0K Oct  2  2019 file
-rwxr-xr-x  1 me users 3.8K Jul  7 16:32 file
drwxrwx--- 13     500 users 4.0K Mar 27  2020 ..
drwxr-xr-x  9 me users 4.0K Sep 30 17:10 .

If files are not from this year, it shows the year instead of the time!

hashing / checksum utility jacksum

Jacksum - a free cross platform checksum utility Is also in the repos as jacksum.

jacksum -a hashingAlgo -x filename

Slack zooming / font size

<Ctrl-plus> and <Ctrl-minus> increase / decrease Slack font size!