Long Time No See
I’ve finally had the time and the strength to get back to my old blog and give it a new look.
I feel guilty about having abandoned it for long time :(
I promise, blog, I won’t leave you alone again.
A life long learning experience.
I’ve finally had the time and the strength to get back to my old blog and give it a new look.
I feel guilty about having abandoned it for long time :(
I promise, blog, I won’t leave you alone again.
I’ve been delaying this migrations for ages now but here we are, it finally happened: I can write a blog post with my favourite editor now (Vim) and publish it to the web like a pro on my favourite dev website (GitHub) using git… that’s too many emotions for one single day :P
There are tons of tutorials already on the net that explain very well how to migrate from Wordpress to Octopress so I’m not going to explain here all the details but make just a quick summary even for myself as a note:
1
| |
1 2 3 | |
The next step will be playing with the theme to make it more “personal” :)
So, you upgraded and mod_rpaf behind your proxy is not working anymore? Do this:
FROM =====>
1 2 3 4 5 | |
TO =======>
1 2 3 4 5 | |
Find the differences and thank this guy that find it before me.
Just dont waste your life and use curl if you need to do that.
I know, this is a useless post but I just wasted a huge amount of time trying to find a solution and I feel like giving this advice to someone.
happy testing :)
Tired of this:
1 2 3 4 5 6 7 8 9 10 | |
Do this:
1 2 3 4 5 | |
Be happy again :)
A new ruby version is out and it’s time to upgrade! The first try gave me this error:
1 2 3 | |
Adding the compiler option “–with-gcc=clang” worked:
1 2 | |
enjoy Ruby :)
Thanks to a gist (which I forked and slightly changed) I was able to finally install Nokogiri on my mac:
If you had MacPorts previously installed, it might still not work so
1
| |
and try again.
Enjoy :)
The easiest way of getting an OpenVPN client on mac is with Tunnelblick but you will join the VPN only when you have logged in. Sometimes you need your mac to connect at startup instead and I’ll show you how to do it:
create /etc/rc.local and copy/paste the following three lines in it:
1 2 3 | |
then create a Launch script like this for each of the vpn you want to connect to, replacing YOURVPNNAME, YOURCONFIGFILE, YOUR/CONFIG/FOLDER accordingly:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
save each script into /Library/LaunchDaemons/ folder using a name for the file like org.openvpn.YOURVPNNAME.plist, then change the user and group to root:wheel with the following command in a terminal window:
1
| |
last commands to register and execute your Launch scripts are:
1 2 | |
a restart should be the very last thing to do and once your mac has started you shoud be connected to your vpn network(s)!
enjoy ;)
UPDATE: the new version of tunnelblick 3.2beta26 does have the the “connect when computer starts” functionality that automatically makes this post obsolete. I’ll just keep it for the records :)
It would have made sense to use LocationMatch with a negative lookahead regex pattern like ”/(?!admin)” but that doesnt work. Neither work a rule like !”/admin” so here is a workaround:
1 2 3 4 5 6 7 8 9 10 11 12 | |
This basically allow the access without authentication to the directories/files that start with admin, skin, js or index. The other rule allow the favicon too.
If you want to copy and paste from Vim to the clipboard, install the package vim.gtk and enjoy the command “+y !