3 ms·
I made a little tool some time ago to show the relations of processes, fifos, pipes and sockets in a handy picture. This turns out to be very handy when debuggi
by zevv 9y ago
I made a little tool some time ago to show the relations of processes, fifos, pipes and sockets in a handy picture. This turns out to be very handy when debugging these kind of problems:
https://github.com/zevv/lsofgraph https://github.com/zevv/lsofgraph
- chatmasta 9y agoThat’s very cool, thanks. I’ll be using it. Do you write all your system scripts in Lua? How do you like it?
- zevv 9y agoUsually it's just bash, as long as I don't need any nifty data structures. But keeping track of data in bash is a pita , so that's where Lua comes in for me. I like Lua for how thin and simple it is, with virtually no dependencies on anything. The good thing is that it runs anywhere where I have a C compiler, the bad thing is that it comes with no batteries included - there's not even a native function for creating a directory. I use Lua a lot in my professional work as embedded software engineer, where the main business logic of the apps are written in Lua, with some thin C layers underneath for integration with various libraries and the OS. Still, there are a lot of downsides to Lua, mostly the weak typing that bites me a lot. I'm slowly moving away from Lua to Nim these days, you should check that out if you haven't yet.
- trashcan 9y agoThis looks cool! I tried to use it, but I don't have "dot". It's kind of hard to search for, can you point me in the right direction?
- mpweiher 9y agodot - "hierarchical" or layered drawings of directed graphs. This is the default tool to use if edges have directionality. http://www.graphviz.org http://www.graphviz.org