RSSAmplifier

Blog

Brian Reiter's Thoughtful Code

Working to make software right.

brianreiter.orgRSS feed ↗10 posts

Latest posts

Azure CLI install: Homebrew or FU

The only official installer for Azure CLI for macOS is Homebrew. This is just wrong because there is no official package manager for macOS and while it may be that Microsoft and GitHub like Homebrew, it should not be the only option. Microsoft also mentions there is another option: If you can t use homebrew to [ ]

AirPlay Receiver in macOS Monterey prevents aspnet core apps from launching in vscode

Monterey uses TCP:5000 by default for a system process which stops aspnet core apps from starting properly as configured in launch.json in all of our aspnet core projects in vscode because that is the default template. "env": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_URLS": "https://*:5001;http://*:5000" } It turns out the process listening to TCP:5000 is ControlCenter which [ ]

Set up a dotnet core development environment with VS Code, MacPorts, and Docker

Install and configure MacPorts While a package manager is not strictly necessary to get a dotnet core development environment up and running, it is extremely useful to have a single tool to update utilities rather than manually discovering the need to update and manually downloading them. It s also useful to set up a consistent command [ ]

Why and how to set up MacPorts package manager for macOS

Package managers for macOS Do I need a package manager? If you never open Terminal.app the answer is definitely, no. macOS is fully functional out of the box with the software shipped by Apple. The base system of command line applications available in a default install are also good enough for poking around and getting [ ]

On UNIX Shells

A (not so) brief history of UNIX shells In UNIX, the shell is the text-mode program that interfaces between the user and the kernel via a teletype interface which is usually purely a software construct these day. It interprets commands, starts programs as necessary, and pipes data between programs. Like a lot of things [ ]

Encrypting DNS on macOS with unbound and Cloudflare

The DNS protocol traditionally runs over UDP on port 53. This is very fast but totally insecure. DNS queries can be snooped or potentially altered by anyone on the network. In my office, I use a pfSense firewall with the unbound DNS resolver configured to resolve DNS over TLS. That way my ISP neither my [ ]

Configurig the postfix MTA to securely forward to a smarthost on macOS

macOS ships with postfix but it is in a semi-disabled state. The launch daemon configuration provided doesn t work and postfix will immediately exit What I want is a working local MTA that forwards mail securely to a smarthost for delivery. This is mostly useful when building and testing scripts and server applications that need to [ ]

SSH muddles the Terminal.app title

Normally, the macOS Terminal.app title bar includes the current directory name. When you connect to a remote host with openssh on macOS, the title bar gets updated to be $(whoami)@$(hostname): $(pwd) instead. Unfortunately when you exit ssh, the terminal title bar is not restored and continues to say you are on a remote host. Once [ ]

Automating dotnet core SDK updates on Mac

I really enjoy working with dotnet core. It is fast, open source, and cross-platform. My preference these days for working with the .NET stack is to build dotnet core apps natively on Mac with SQL Server or PostgreSQL on Docker for Mac. We can then easily deploy Docker containers or in some cases dotnet core [ ]

2-Step Verification Code Generator for UNIX Terminal

I have been using a time-based one time password (TOTP) generator on my phone with my clod-based accounts at Google, Amazon AWS, GitHub, Microsoft every service that supports it for years now. I have over a dozen of these and dragging my phone out every time I need a 2-factor token is a [ ]