OS X Mountain Lion as a free VPN Server

VPN Tunnels are a great way to hide your network traffic from the WiFi network you happen to be on. Whilst out an about, I can VPN into my home network with my laptop, iPhone, or iPad, and not worry about what information my device might be leaking to the WiFi provider. This outlines how

memory hungry gitlab

Turns out that gitlab is quite the memory hog – inhaling everything your system has. As I’m running on a virtualized environment adding extra memory is not a quick, easy, or cheap solution. So we can use some good old swap space. So we add swap space to our system. As root, do the following:

adding images to a Gitlab wiki

When you maintain a wiki on your own Gitlab, you can include images (or downloads, in general) in your page. But how to you upload the images to the gitlab server? The short explanation is to download the wiki through git, and add the files locally to your repository of the wiki. Add the files

Where’s my scp?

CentOS, in the default install that I got, does not come with scp. So you get this: [user@host ~]# scp bash: scp: command not found So you need to use yum to install it. yum install openssh-clients Easy when you know.

Adding SSL for Gitlab on CentOS

A default Gitlab installation comes without HTTPS. This is good because it’s quick and easy to install. But it’s bad, since when you log in, your password and username are sent in clear over the Internet. Update: as of Gitlab 7.0 I’ve noted that these changes will all be automatically made by Chef when you

cannot change locale warning

After installing new systems, I often got the error similar to this: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory I went looking in the locale definitions, the bashrc, and other environment setting techniques. Turns out SSH is to blame. From what I understand, this is the fault of ssh,

SSH authorized keys – Permission denied

I was trying to setup SSH login using public/private keys for the user root on a CentOS 6.4. But all I was getting was: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). The typical changes were made, such as: PubkeyAuthentication yes AuthorizedKeysFile ~/.ssh/authorized_keys So it I ran the command the FireDaemon suggested, not knowing what it did: restorecon -r -v

Format a FileVault 2 encrypted disk

When you still have your password and have lots of time, you can cleanly disable FileVault2 from the Preferences pane. When you lack either one of these, another option is available: formatting your whole drive and losing your data. When losing data is not a problem, you can use diskutil to force a wipe of

administratively prohibited: open failed

I’m using SSH to access my servers on the Internet, and use these same servers as proxies for my web surfing. SSH has a great way of doing this. In your SSH config file, simply use: DynamicForward This will tell your local SSH client to open port 1080 and become a SOCKS proxy. However,

How to flatten a PDF form

You’ve got yourself a PDF form. You’ve completed the form. Now you need to pass the form on, but without the form. Just the plain PDF. Adobe Acrobat won’t let you. Preview can’t read the file. The result is this sort of thing.