Sloth – A Mac app that shows all open files, directories, sockets, etc.
github.com
github.com
Try "\.sqlite" too.
This is fun:
brew install datasette
datasette ~/Library/Calendars/Calendar.sqlitedb1. XML-based (the entire database is one xml file)
2. SQLite-based
3. Roll your own (by providing an implemention)
#1 is terribly slow for most cases and not publicly available on iOS.
#3 was released early in the ioS lifecycle (iOS 3 or iOS 5, depending which piece we're talking about)
SQL is, for most purposes, the only implementation, except for iTunes which used #1 for a decade after #2 clearly won.
https://github.com/dunhamsteve/notesutils
It seems to still work for text. It looks like it doesn't dump tables anymore, so that bit may have changed (it was pretty convoluted). I think the extraction of drawing information doesn't work anymore, but they provide a fallback PNG file.
I wanted it to be self-contained, so it has a little hand-rolled protobuf decoder and might be a little code-golfy.
I'd been poking through them with plain old `sqlite3` and then deserializing all the plist data with something like `pbpaste | xxd -r -p > foo.plist` for examination, but had no idea datasette existed and https://datasette.io/plugins/datasette-bplist#user-content-t... seems like the ticket for browsing these.
For others: all the Caches.db files are the per-process HTTP cache that NSURLRequest/NSURLSession keeps, so if you peek at it you can see (partially) a history of network requests that process has made. Most of them seem to pull feature flag configuration from https://bag.itunes.apple.com/bag.xml, but others do more interesting things.
> scp SlothAppcast.xml root@sveinbjorn.org:/www/sveinbjorn/html/files/appcasts/SlothAppcast.xml
The references to "Mac OS X" (now over 10 years old) are the cherry on top.
Also, mind sharing where you found this information about the public server bit?
I haven't reviewed obj-c code in over a decade, but I do know anything running with root authorization needs to be scrutinized carefully. And seeing blocks of code copy-pasted from stackoverflow, references to a 10 year old operating system, use of SIGKILL instead of the proper SIGTERM, for example, does not exactly inspire the necessary confidence.
Also, I'd be curious to know what "blocks of code copy-pasted from stackoverflow" you found. As far as I know, I wrote all of Sloth myself, starting 19 years ago. As for references to "Mac OS X" in code comments, that seems rather pedantic given that this is very old code and Apple keeps changing the name of their operating system: Mac OS X -> OS X -> macOS.
That being said, thank you for identifying the appcast deployment script, which shouldn't have been in version control to begin with.
Ref image here:
http://www.lucidelectricdreams.com/2010/10/haiku-remember-wh...
lsof | fzf
Platypus allows you to create a Mac [dot]app wrapper around any type of scripts.
Sometimes I'll see my network spike via menumeters but I have no idea what caused it. Was it Google drive syncing something? Something else? What files were accessed?
As it happens, there are GUIs that kinda do this, though not intentionally. Charles Proxy comes close, though the interface was a bit rough the last time I used it (2016).
Yep!
> Sloth is essentially a friendly, exploratory graphical user interface built on top of the lsof command line tool. The output of lsof is parsed and shown in a sortable, searchable outline view with all sorts of convenient additional functionality.
In the default tree view, as new data is written, the entries are highlighted and sort of throb, so it's easy to track what's going on.
[1] https://learn.microsoft.com/en-us/sysinternals/downloads/fil...
More info:
man fs_usage
Example showing pathname-only events but otherwise unfiltered: sudo fs_usage -ew -f pathname $ sudo fs_usage -w -t 5 -f filesys | tee fs_usage.log | egrep -o '(/.+?) {3}' | sed -e 's/\/dev\/disk[^ ]+ //' | sort | uniq -c | sort -nr
From https://www.jakobstoeck.de/2017/ramdisk-for-faster-applicati...Have a look at the writings on the books, the pots, etc, in that picture and I think you will see what I mean ;)
You might have to open the picture on a laptop or desktop computer to get a good look at it. On mobile it might be more difficult to see it proper.
It’s my favorite poster that I have ever seen. One of these days I will get myself a nice physical copy of it.
https://en.wikipedia.org/wiki/Canto ... I'm currently reading Dan Simmons' Hyperion/Endymion again, which might have pushed that into my mind.
0. https://github.com/iovisor/bcc
1. https://github.com/iovisor/bcc/blob/master/tools/filetop.py
For people that are the target audience of this, I'm curious - what do you like about putting the information into a gui and using a mouse instead of a keyboard?
I don't have to remember anything to use it, I just click self-explaining buttons and the thing works. The search function is also very nice, and navigating an outline view with the arrow keys, quickly collapsing subtrees as needed, is a very useful tool. Also, drag and drop.
In my experience, CLIs are great for efficiency, if I am doing a task so often that it becomes rote behavior and learning the tool is no longer helpful, or if I want to automate it. I find my real world need for either of these to be relatively slim, but I am not surprised that it is common for others.
In fact I first found lsof when working on HP-UX servers. IIRC, it was written by an Indian-named guy who may have worked at HP.
https://learn.microsoft.com/en-us/sysinternals/downloads/pro...
As others have said, Sysinternals Process Explorer and Process Monitor.
https://helpdeskgeek.com/windows-10/how-to-use-process-monit...
This project gives full credit to the giant it stands upon.
README.md:
> Sloth is essentially a friendly, exploratory graphical user interface built on top of the lsof command line tool. The output of lsof is parsed and shown in a sortable, searchable outline view with all sorts of convenient additional functionality.
I clicked out of curiosity and my trypophobia was definitely triggered. Probably due to the numerous “holes” around the edges of the sloth.
Those who don’t have trypophobia understandably would think it’s ridiculous. But as someone who feels it for whatever reason, it’s totally real.
Isn't it sort of the point? Since the app is showing you all the ports (i.e. "holes") that are open?
Somebody needs Cayce Pollard (https://www.goodreads.com/en/book/show/22320) to have a look.
https://extension.entm.purdue.edu/fieldcropsipm/insects/corn....
The logo looks competently drawn and is better at bigger scales where the details are clearer, but from a distance it caused me a visceral rejection reaction.
A sloth drawn with less fur detail would be simply cute, for instance: https://media.tenor.com/yypYI980ipUAAAAC/sloth-animal.gif
Quick fix for ugly app icons.
There are plenty of developers who also take pride in developing native applications on Linux that run well and look good, but from what little I know about GUI app dev, it's harder to do that in a way that runs well and looks good on the wide range of Linux-based systems that exist out there.
The fragmentation is almost as bad as on Linux: an admin tool that looks at home alongside Microsoft Management Console will never fit in with the Windows 10 or Windows 11 Settings applications.
Allows for greater control over your own expression, while having to support many possible platforms.