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
Press Control+X then Y to exit and save changes.
Close and relaunch Terminal for Tab Completion to be enabled.
If you are on a Unix based system, such as a Mac or Ubuntu, then you already have two tools built-in to help with wrapping text:
fmt. I’ll be explaining how these two tools both do text-wrapping but in slightly different ways.
Continue reading Textwrapping with FOLD and FMT
Tired of having a messy desktop? You can automatically sort your files into an archive using Applescript or Bash, on Mac OSX.
Continue reading Mac OS: Auto-archive Your Files
When setting up a server that needs to send emails, it’s sometimes more useful to have it send those emails via SMTP (using a service like Gmail or AWS SES) but often the php default is not this. So let’s learn how install and setup secure email sending capabilities for our php based applications on a linux server.
Continue reading Linux: SMTP for Server Email
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
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
You can quit applications by using the Force Quit menu (⌘⌥ESC) but sometimes we need to quite a background application or the application on a remote machine. In Terminal we can do this using the top and kill commands.
Continue reading Mac OS: Kill an App with Terminal
Here’s a list of some useful commonly seen Mac symbols, great for when you have to write documentation:
First, pressing ⌘⌥T (Cmd + Opt + T ) will bring up the special characters menu.
To give us access to these technical codes, we’ll need to add them.
Continue reading Mac OS: Useful Unicode Symbols
In FileMaker you can load content in web viewer boxes. While useful, they load at a different pace than the rest of the record they are in. For detecting the load of an image in a web viewer I use the following code.
Continue reading FileMaker: Detecting Web Viewer Image Load
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