Better HN
topnewbestaskshowjobs
Log inSign up

themadsens

55 karma · joined Jul 22, 2019 (7y ago) · 53 submissions

Submissions

comment 3mo ago · link · parent

Tmtail is a quick tmux hack, working (surprisingly well) as an ad-hoc replacement for multitail, implemented with tmux and grcat. Github: https://github.com/themadsens/tmtail

The following features thus come more or less for free:

- Mouse aware for select, resize etc.

- The full tmux copy-mode for scrollback browsing, searching etc

- Copy scrollback text to the clipboard (y & Y) without any fuzz, via tmux clipboard integration

- Easily extendible by adding bindings for tmux actions. The sky is the limit ..

Color highlighting is done with an node clone of grcat, grcat.js, which is about a factor 10 faster than the python original

Currently a default grcat configuration is baked into tmtail that should be well suited for tailing wildfly logs

2.

Show HN: Tmtail – Multi-log tail with coloring, search, and history via tmux(github.com ↗)

1 points · by themadsens · 3mo ago · 1 comment

comment 4mo ago · link · parent

Just enable perpetual bash history and install fzf. That will get you CTRL-R (and a lot of other niceties) out of the box.

4.

An ad-hoc replacement for multitail made with tmux and grcat(github.com ↗)

1 points · by themadsens · 4mo ago · discuss

comment 7mo ago · link · parent

The dot command, as you probably well know, is a macro that captures the last change: was it '3cw' or 'cE' or '7s' or <visual>s or 'ct)', all changed to the last insert. All intuitively without you even having to think about it.

Much more powerful than "change all my selections to the next input" IMO.

comment 8mo ago · link · parent

Whats with all the fuss over multicursor. How is this different from just using '.'

comment 8mo ago · link · parent

I naively assumed it would work on the already installed homebrew packages. No such luck.

After installing, 'nb list' and thus eg. 'nb outdated' will yield the empty list! I have absolutely no use for a competing homebrew installation that is mostly compatible ..

comment 8mo ago · link · parent

Maybe not: https://www.reddit.com/r/hammerspoon/comments/1puln7j/110_re... https://github.com/cmsj/Hammerspoon2

comment 10mo ago · link · parent

I was lucky enough that my first employer ran the very first 4.2BSD in Denmark outside academia (on a DEC-VAX/750), so i grew up with Bill Joy's newfangled "vi" and spent countless hours recap'ing the cheat sheet.

To this day stuff like "3dw" and "d}{{[P" are just second nature. Very much enjoying moders stuff like neovim and CoC/LSP too.

And yes, nvim is perferctly suitable for Java and maven with ctags/ripgrep/fzf etc. plugins

comment 10mo ago · link · parent

More often than not you want 'de' or 'ye' rather than 'dw' or 'yw'

comment 1y ago · link · parent

Sweet, very impressed.

To be really usable, for embedded and otherwise, a well documented and ergonomic C API for bindings is needed though.

The closest I could find was "If you need to add more predefined functions, add them in intrinsics.h." I will take a look though, this seems really promising

EDIT: Looks to be pretty easy to tack an external registration mechanism onto intrinsics.h. Good to go then ..

.. Only two SO comments at this point .. come on folks :-)

comment 1y ago · link · parent

I wish premake could gain more traction. It is the comprehensible alternative to Cmake etc.

comment 1y ago · link · parent

Oh yes. For one thing "hexdump -C ." would work out nicely in those days.

comment 1y ago · link · parent

I always found buildroot a lot easier to fathom and harness. And certainly flexible enough with the ability patch every included recipe and package.

comment 1y ago · link · parent

Well said! I have met a few of these codesmells where the actual functioning is hidden behind a bewildering maze of facades, shims, proxies and whatnot.

I guess some has had an irresistible itch to use as many patterns from the GoF book as possible.

comment 1y ago · link · parent

Very impressed with ghostty so far, but: Main reasons for sticking with ITerm2 (for the moment at least):

- "Seamless" cut & paste with paste on "2 X right click" + "Trim trailing LF"

- Quadruple click "Smart selection"

- Brillant search with highlighting in text and scrollbar

- Support for OSC-1 "icon titles" in tabs, as opposed to OSC-0 "header title"

comment 2y ago · link · parent

I connect to serial ports a lot in what I do, and never really understood why this should be handled by the terminal emulator. Much better done with eg. picocom, python serial.tools.miniterm or the like.

comment 2y ago · link · parent

LuaRT is based on ZeroBrane, actually :-)

comment 3y ago · link · parent

Alfred (https://alfredapp.com) has a snippet manager (and a _whole_ lot more kbd goodies)

comment 3y ago · link · parent

You can: Help for bash 'history -s args': The args are added to the end of the history list as a single entry

comment 3y ago · link · parent

Incidentally, this is how you add a second external monitor to an M1/M2 macbook

comment 3y ago · link · parent

Hmm doesn't seem to do 64bit very well: 0xdeadbeefcafebabe -> 0xdeadbeefcafeb800

Is the result by any means passing through a double? like in freakin' JS!

comment 3y ago · link · parent

I swear by "Monaco Nerd Mono"

It was a revelation to discover "Monaco" when I first got started on the mac. So casual yet stylish and refined.

comment 3y ago · link · parent

My absolute most horrid work experiences have all involved Hibernate / JPA. It slows everything to a grinding crawl, works somewhat 99.9 % of the time and creates inexplicable un-debuggable errors for the remaining 0.1%

On top of that you have to ditch referential integrity to make it at least limp along

Give me plain SQL or something lowlevel like sql2o any day

25.

Neovim Live Preview for Everyone(twitter.com ↗)

2 points · by themadsens · 4y ago · discuss

comment 4y ago · link · parent

> right up there with ddO

I believe S or even cc is more succinct

comment 4y ago · link · parent

A schoolbook lesson in steadily pushing "because we (think we) know better" boneheadedness. Well done indeed!

comment 4y ago · link · parent

Arguing that opponents to removal "can just step up as maintainers" are completely bogus. As mentioned elsewhere, this is more about eroding trust in stdlib as a stable baseline. This is just the kind of thing that will teach people to not trust Python as a stable foundation.

Also. If maintenance of aging modules becomes tiresome, maybe it is a strong hint to keep backwards compatibility in Python proper.

12