Category Archives: Mac

The inner workings of MacOS.

Enable Tab Completion on Mac OS X Terminal

The Mac OS Terminal doesn’t have tab completion enabled by default. If you find yourself using the terminal often, you’ll want to turn this feature on, since it’s a pretty awesome way to make your life a little easier.

First, launch Terminal and enter

cd ~/ && nano .inputrc

Paste in the following three lines of rules:

set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete

Press Control+X then Y to exit and save changes.

Close and relaunch Terminal for Tab Completion to be enabled.

Mac OS: Split-Tunnel VPN

So you’ve already setup a VPN connection to your home or office, but then you realize that you either can’t connect to your VPN network, or you can’t connect to the internet. If you want to have access to both, you’ll need to setup a split-tunnel. On a Mac this is a bit more frustrating than on a Windows machine, so I’ve used some script-foo to make it easier.

Continue reading Mac OS: Split-Tunnel VPN

Mac OS: Port Forwarding

 

I’ve been working with virtual machines (VirtualBox) to learn more about Linux as a server environment. It’s great knowing you can revert back to a previous “system snapshot” when you screw up. Even with all this greatness, I was unfortunately having a lot of trouble getting a VM server to connect to other computers. Actually, it was very easy with using a bridged ethernet connection with the server getting a unique IP address. However, a bridged connection is not always available, so I was determined to get it to work with a NAT connection with port forwarding. I needed port 80 to be forwarded to port 8080, and it was a pain but I finally got port forwarding to work. Here’s how to do it on Mac OS.

Continue reading Mac OS: Port Forwarding

Use Python and the Twitter API to Find Tweets

In this beginner’s tutorial I’ll walk through the steps to making your first Python program that works with the Twitter API. This will allow you to perform actions with Twitter’s code without being on the website, and also open up other options that are not readily available to normal users.

For this tutorial we’re first going to need a Twitter dev account. Don’t worry, this is a very simple step.

Continue reading Use Python and the Twitter API to Find Tweets