46 karma · joined Jun 21, 2022 (4y ago) · 48 submissions
comment 2mo ago · link · parent
comment 2mo ago · link · parent
cmd+U scroll to beginning
cmd+I scroll to end
cmd+u page up
cmd+i page down
cmd+j one line up
cmd+k one line down
cmd+- font size decrease
cmd+= font size increase
cmd+0 font size reset to default
cmd+3 default font
cmd+4 alternative monospace font
cmd+[ grow left window border
cmd+] grow right window border
cmd+{ shrink right window border
cmd+} shrink left window border
cmd+9 switch background and foreground color
all this in one day, with huge help of duck.ai which is completely free. the app size is approx 300kb. using it feels great because i can do the whole cycle with keyboard only: - cmd+space to open spotlight search
- type the name of the app, enter, it opens a new window with clipboard contents, i inspect it with keyboard hotkeys only
- cmd+q to exit or cmd+tab to switch back to the prev app
for me personally the standard gui apps are annoying because of the standard kb shortcuts - they are hard to remember and even hard to reach. i prefer "sort of vi navigation" because i can keep my hands for navigation at the same position as for typing.comment 3mo ago · link · parent
cat $HOME/zsh/*
should be easy to copy-paste or pipe it to an editor.i mean, the problem of viewing all history files at once is much easier than writing to the same one file from multiple sessions.
comment 3mo ago · link · parent
comment 6mo ago · link · parent
the OP made a tool which helps them to avoid using port numbers. people commented in a way that looked like laughing at him, like he reinvented the wheel, and talking about /etc/services. well ok, i decided to try using /etc/services for the purpose of using names instead of port numbers.
would it be possible to add "myapp 60001/tcp" to /etc/services and then work with "http://localhost:myapp"? NO! browsers do not translate these names into port numbers. netcat does. curl does not.
so probably the OP's solution is not that questionable and really solved their need? and "good old friend /etc/services" is not useful for this? i dont know what it is useful for as running services on non-standard ports actually helps with hiding from security/vuln scanners and is practiced widely.
comment 6mo ago · link · parent
zdw: It's like someone should make a file... maybe in /etc ... and put short names for services in it... maybe it could be called /etc/services...
tolciho: And then they might code up some sort of service lookup tool thingy to use on the train wreck that is the modern web.
$ getent services gopher
gopher 70/tcpcomment 6mo ago · link · parent
if you host an http(s) service on port 11111 you can reach it with url http://127.1:11111, but url http://127.1:vce/ would not work in most software.
$ grep 11111 /etc/services
vce 11111/udp # Viral Computing Environment (VCE)
vce 11111/tcp # Viral Computing Environment (VCE)comment 6mo ago · link · parent
i just wanted to make the point that even if you have service names in /etc/services, it is not possible to use that names easily to host/access http(s) services.
comment 6mo ago · link · parent
also `curl -v http://127.0.0.1:gopher/` gives error message
* URL rejected: Port number was not a decimal number between 0 and 65535
* Closing connection
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
so the ports are named, it is nice, but in practice it does not make life easier.comment 7mo ago · link · parent
excuse me? "basic" and "runs in your browser" together sound very contradictory to me. while doing things i actually feel (yes, emotionally) much better when there is no browser open on my machine, but only text editors, vcs gui and file managers, and terminals of course. and sometimes i reject an idea to start a browser just thinking how much ram it will take (ha, what a progress we have done - one github issue tab, with text only and no images, takes 180mb of ram).