HackerTrans
TopNewTrendsCommentsPastAskShowJobs

who23

no profile record

Submissions

Show HN: Create a Hook for a macOS Notification

github.com
2 points·by who23·5 वर्ष पहले·0 comments

comments

who23
·4 वर्ष पहले·discuss
For clarity, the author did say in another comment that for Windows they plan to implement system API calls to watch files instead of manually scanning the filesystem. For macOS and linux it is listening to OS events.
who23
·5 वर्ष पहले·discuss
after a little digging it looks like a custom font called 'Simple Console', though it's not available anywhere I can find other than through the website (which states it's licensed only for use on their website, not for download or use on other sites)
who23
·5 वर्ष पहले·discuss
looks like jetbrains mono?
who23
·5 वर्ष पहले·discuss
Super fun! Is there a public repo for the code?
who23
·6 वर्ष पहले·discuss
Hey I'm the author - I did not know about this! I suppose I should have guessed somebody made a shell script linter at some point though. Very useful!
who23
·6 वर्ष पहले·discuss
Hey I'm the author. Yes, as far as I know it's just sugar for opening a socket, and there's almost never a file that exists. To treat it as a file, you need to assign a file descriptor to it, which you can then read and write from.
who23
·6 वर्ष पहले·discuss
Hey I'm the author. Yeah, I stumbled on this while doing a little research into zsh socket capabilities, but I decided to exclude it because the post was more about network sockets than Unix domain sockets.
who23
·6 वर्ष पहले·discuss
Hey I'm the author. Bash treats 0 exit codes as a success, so the "server up" echo runs if the connection is made.
who23
·6 वर्ष पहले·discuss
Hi I'm the author! Yes, I wrote this code quite quickly and when I originally posted this on reddit someone pointed out my mistake. The more you know, I suppose.