Alfred 2 Toggle Wi-Fi and Bluetooth Workflows

On my Mac, I don’t like to have things on when they are not in use. At the start of my workday, I turn on Bluetooth to use my mouse and keyboard and turn off Wi-Fi since I use a wired connection at my desk. I then switch them back at the end of the workday.

Moving my mouse and making these clicks becomes mildly annoying, so I wrote two Alfred 2 workflows so that you can toggle Wi-Fi and Bluetooth on/off efficiently.


Toggle Wi-Fi (Alfred keyword: wifi)

Toggle Bluetooth (Alfred keyword: bt)

Requires blueutil to work properly. To install, run brew install blueutil


Things on My Desk that I'm Thankful For

In the spirit of Thanksgiving coming up next week, here’s a list of things on my desk that I’m thankful for. Perhaps one of these may turn into a gift for someone (or even yourself) this year!

  • Mobee Magic Charger & Bar

    No more buying AA batteries!
  • Plugable USB 3.0 10-Port Hub

    Only need to plug in one thing into my machine to connect to tons of other things.
  • Ergotron Desk Arm

    Raises my MBP and monitors off the desk, so I can put more crap underneath.
  • Astro Mixamp

    Allows me to listen to computer and TV sounds at the same time using a single pair of headphones.


SSH without a Password

Entering passwords is really annoying if you SSH into servers on a regular basis. Here’s how to add your SSH key to the remote host so you no longer have to do so!

  1. Start on your local machine (the machine you use to tap into the remote host)
  2. Copy to home directory of remote host

    $ scp ~/.ssh/ [user]@[remote hostname]:~
  3. SSH into server and enter password. Celebrate that this will be the last time you will need to do this.

    $ ssh [user]@[remote hostname]
  4. Add to authorized_keys

    $ cat ~/ >> ~/.ssh/authorized_keys
  5. Remove and exit remote server

    ~ $ rm ~/
    ~ $ exit
  6. Test it! You should no longer be prompted to enter a password!

    $ ssh [user]@[remote hostname]

There are alot of assumptions made in this guide, so if you run into problems, the Ubuntu Community Wiki is very helpful for troubleshooting!