I am Hack Sparrow
Captain of the Internets.

Archive for General

How to disable GitHub Pages’ default Rouge code highlighter

One of the best features of GitHub Pages (Jekyll) is its ability to converted code blocks within ``` to a pre-formatted HTML code section. For example, this is how you mark a section of JavaScript code. [code] ```js var s = 'Hi'; ``` [/code] Till recently (before Jekyll 3.x), the corresponding HTML code section used to be like the following: [code] <pre> <code class="language-js">var s = 'Hi';</code> </pre> [/code] This allowed us to use mostly a ...

OS X El Capitan screwed up Ruby gems, and how to fix it

After I updated my MacBook Pro's OS to El Capitan, all the command line tools installed via Ruby gems were gone - command not found. Here is what I experienced and how I fixed it. On trying to reinstall the gems using gem install, I was met with a permission error. Usually this kinda issues are fixed with the use of sudo (even if not recommended), but not this time - even sudo was faced with a permission error. I got to learn that this wa ...

Solution for VPN Connection: Verify your settings and try reconnecting.

I have been encountering a very irritating problem on my Mac for quite some time. Everytime VPN times out or you enter a wrong password, VPN stops working with this message: [code] An unrecoverable / configuration error occurred. Verify your settings and try reconnecting. [/code] Here is how to fix the problem without restarting your system. [code] $ ps aux | grep racoon captain 8399 0.0 0.0 2435116 524 s002 S+ 5:13PM 0:00.00 grep racoo ...

Homebrew update Error – cocot.rb

If you ever come across this error while trying to update homebrew on your Mac: [code] error: The following untracked working tree files would be overwritten by merge: Library/Formula/cocot.rb Please move or remove them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master [/code] just, do this: [code] $ rm /usr/local/Library/Formula/cocot.rb [/code] I have no idea what cocot.rb is for, or where it cam ...

Install Memcached on Mac OS X

There are two ways to install memcached on Mac OS X. One is the easy way, the other is the harder but more flexible way. Installing memcached using brew is the easy way, and it is just a matter of a single command. [code] $ brew install memcached [/code] There you have memcached installed on your Mac! ...