~/

Better Bash 4 & Completions on OSX

OS X ships with an outdated version of Bash as its default shell. The preinstalled version dates back to 2007, yes - nearly a decade behind. If you want to use an updated version of Bash and Bash Completions in your shell, you can install them by using Homebrew, a package manager for OS X. Installing via Homebrew Open your terminal and enter this command: brew install bash Now we’ll append our desired (Bash 4) shell’s path to a file of whitelisted system shells, and then change the system shell for our user.
Read more →

Automate your ssh-keygen process

A lot of developers I know use a single id_rsa key to connect to every server. That’s a terrible idea from a security perspective. Especially if you’re connecting to servers you don’t manage. Basically ssh keys are a lot like passwords: More diversity == less risk. PSA: Never use DSA or ECDSA for encryption. Ed25519 is the best, but not fully supported, so generally I stick with 4096 bit RSA.
Read more →

fixing ACLs on OS X Server

If you’ve experienced issues copying/renaming files and folders OS X server from your desktop, especially over SMB - it’s most likely a permissions issue. Generally most people use groups to manage permissions on their fileshare, but sometimes a new file/folder created by a user does not inherit those group permissions. IE: Joe and Brett both belong to the “managers” group. The managers group has “read/write” access for the shared folder. Everything works fine.
Read more →