Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
meribold
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
meribold
2y ago
Some more good ideas for Readline configuration: https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/
32.
▲
by
meribold
2y ago
To make Less (the pager program) behave a bit more as if it used Readline (it doesn't), one can create a `~/.config/lesskey` file with these contents: #line-edit ^A home ^E end ^F right ^B left ^P up ^N down
33.
▲
Things you didn't know about GNU readline (2019)
(twobithistory.org)
168 points
by
meribold
2y ago
|
112 comments
34.
▲
by
meribold
2y ago
Mine has an ASCII cow to keep you motivated and accountable: https://github.com/meribold/muccadoro .
35.
▲
by
meribold
2y ago
And here's one that builds the latest code from the Git repo: https://aur.archlinux.org/packages/elles-git .
36.
▲
by
meribold
2y ago
This looks nice. I added a package to the AUR: https://aur.archlinux.org/packages/elles-bin .
37.
▲
by
meribold
2y ago
If you use `alias ls=elles`, scripts should be unaffected as aliases are ignored in non-interactive shells.
38.
▲
by
meribold
2y ago
I thought the name is pretty funny in a self-deprecating way. Just commenting because everyone seems to hate it so far. I didn't know about the drug, though.
39.
▲
by
meribold
3y ago
I'll have a look. Thanks! I'll avoid using potentially transient details of Linux's ELF loader, though, since I use `btry` daily and don't want to tempt fate to have it suddenly break following a kernel update too much.
40.
▲
by
meribold
3y ago
I don't remember if it's why I initially did it, but it allows hardcoding the final characters of the output string ("%)\n") somewhere into the ELF header where they don't do damage ahead of execution.
41.
▲
by
meribold
3y ago
Thanks for the suggestions! I'll definitely look into those. I'd been hoping posting on HN would result in being able to shave off yet a few more bytes.
42.
▲
by
meribold
3y ago
This project started as a rewrite of a Bash script (for learning purposes), so I can easily answer this question. It's indeed small. Here's the full Bash script I used to use (including comments): #!/usr/bin/e
43.
▲
by
meribold
3y ago
This project is a rewrite of a Bash script that I started to teach myself a little bit of x86 assembly. I still don't know much, but I did learn that ELF executables can be surprisingly small and simple for a very basic program. A 64-b
44.
▲
Show HN: A (marginally) useful x86-64 ELF executable in 466 bytes
(github.com)
85 points
by
meribold
3y ago
|
21 comments
45.
▲
by
meribold
3y ago
I don't know. But what worked in my case was typing the whole email address by hand.
46.
▲
by
meribold
3y ago
> Don't like one of Hancho's defaults? It's only 500 lines - hack it up however you like. It's fascinating to think of this as a deliberate approach or paradigm rather than a shortcoming. The antithesis to the inner-p
47.
▲
by
meribold
3y ago
I managed to log in again following a few days with failed attempts because of your post. Thank you! I use `xdotool` to autotype my email address and was also consistently presented with endless captchas that I couldn't get past. Now I
48.
▲
by
meribold
3y ago
Setting HISTFILE to a non-default value in the same place as HISTSIZE/HISTFILESIZE seems like it would solve this problem nicely.
49.
▲
by
meribold
3y ago
I think that's it! I've been wondering why Bash sometimes deletes most of my history for ages. My .bashrc sets up an EXIT trap that git-commits my history, so I just looked at the commits that remove lines and found that 7 out of
50.
▲
by
meribold
3y ago
This got some attention on HN at the time ( https://news.ycombinator.com/item?id=15520390 ), but since then, I've improved the wording, layout, and page load speed, so I thought I'd submit it again. A few of the num
51.
▲
A Survey of CPU Caches (2017)
(meribold.org)
1 points
by
meribold
3y ago
|
1 comments
52.
▲
Need for Speed
(anonyfox.com)
3 points
by
meribold
3y ago
|
0 comments
53.
▲
My Most Successful Keyboard Hacks
(noahfrederick.com)
10 points
by
meribold
3y ago
|
0 comments
54.
▲
by
meribold
3y ago
> Seems like we're in a period of ecosystems shooting themselves in the foot, be it 'social' media, software, banking or politics. Examples of companies besides Red Hat that have also been burning huge amounts of good will
55.
▲
by
meribold
3y ago
That only works as long as you're the sole developer working on a project. When enough programmers work on a project, each using their preferred subset of C++, the whole language ends up being used (including C). Refusing to learn feat
56.
▲
by
meribold
3y ago
Any problem with C++ can be solved by adding more features, except of course for the problem of too many features.
57.
▲
Show HN: Battery status program in 110 lines of x86 assembly
(github.com)
1 points
by
meribold
3y ago
|
0 comments
58.
▲
by
meribold
4y ago
It would be great if this could also summarize the discussion. Often there are hundreds of comments with a lot of commenters making similar points.
59.
▲
by
meribold
4y ago
But if you picked C and Unix 50 years ago…
60.
▲
Introducing Firefox View
(support.mozilla.org)
3 points
by
meribold
4y ago
|
0 comments
More ›