$ go get -u github.com/raspi/heksa
$ cargo install hexyl
For a long time, I’ve been in the habit of installing Xcode on Macs, even though I wasn’t developing software. (Partly because I wasn’t sure what I needed to run Fink/MacPorts/Homebrew, and partly because I think FileMerge is pretty sweet, even if it’s the last thing on this list of features.) But lately, the typical Xcode update is like 7 GB, and I just don’t need it.
So I wanted to know how to get rid of these monstrous downloads. And I found out. First, you get rid of Xcode. But that’s only step one:
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install to install the standalone command line developer tools.
See man xcode-select for more details.
So, next, you have to get rid of the command line tools and reinstall them:
$ rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install
UPDATE: When that doesn’t work, you read further down that page and find the correct answer:
sudo xcode-select -s /Library/Developer/CommandLineTools
Fixing mouse scroll direction, key bindings, setting up Exposé spaces, etc.
Installing Keynote, Numbers, and Pages plus any software previously purchased from the App Store.
Installing MacPorts, then software starting with ImageMagick. Imagemagick because it’s a good test of everything working properly.
$ sudo port install imagemagick +graphviz -x11
Then adding some of my favorite utilities
$ sudo port install antiword bat colordiff exiftool jhead lame sox tree xz
$ sudo port install ffmpeg -x11
$ sudo port install nnn ranger
Then install software development languages: go, rust, and ruby. Follow them with some CLI utilities written in those languages:
$ cargo install broot cw du-dust dutree exa fd hexyl \
just lsd pastel ripgrep sd
$ go get -u github.com/gokcehan/lf
I picked up a new old computer. This one’s a Macbook Pro: the 17in model from early 2011. It’s pretty sweet.
It’s a behemoth. I can see how the modern Apple could never ship monsters like this. But it’s got a good, big screen and the HD is tolerably easy to upgrade.
And don’t overlook that super-useful ExpressCard/34 port, okay?
This is what it looks like overnight. It’s not as fun when you’re actually in the middle of using it.
I’ve found some more CLI utilities (via this thread) that look like they’re worth further investigation.
I’m intrigued by topgrade but a little terrified of actually using it.
And I found the indispensable utility called genact.
I’ve been learning (or maybe beginning to learn) the Rust programming language. (It was a toss-up between that and Go, and I probably picked wrong, but I won’t know until I know a lot more than I do now.)
I’m only beginning to play with these. But I was surprised to see so much activity developing command line utilities. There is some misunderstanding of the Unix philosophy, but it’s understandable (
cat isn’t for viewing files, but of course that’s how most of us use it). Yay open source!
I’ve been hoarding data for more than 20 years. For backups, I used to burn a CD periodically, but I long since ran over those limits. Today, my backups are hard drives. One reason is that I’ve moved between computers several times during that period, and when I do, I find stuff I don’t know what to do with. So I copy all that data into a new folder, typically called something like temp/backup/that-system-name/tmp/old/save/keep/t.files/save.d.
After 20 years, that starts to add up. So I’ve been looking at programs to help me find and get rid of duplicates. (I’ve been using rsync -n, and occasionally diff -qr, to compare folders. But the problem is deciding what folders, at what places in the directory structure, to compare.)
So far, I’ve focused on dupd. It does what I was thinking needed to be done: crawl the entire hierarchy and save the result as a database.
I’m setting up my new (old) iMac and I thought I’d give MacPorts another try. I used it since the late 2000s. (I forget why I moved from Fink to MacPorts.) For the last five (?) years or so I’ve used Homebrew, but I’ve always been uneasy about making
/usr/local writable, and never convinced by the blandishments on the Homebrew site. I heard about Nix, but before I tried something really different, I thought I’d give MacPorts another look.
So far, so good. I prefer to need
sudo to install software. The only real problem I’ve encountered is that the MacPorts version of Pandoc is so old it can’t read docx files. (#sad!) But Pandoc has its own installer, so I’m trying that out too.