Use Unison on Webfaction

Unison is a great little tool to synchronize files between your local machine and a remote server. It’s free, open-source, and cross-platform. I use it every day to develop Jetpack. However, until very recently I couldn’t use it to work with files on this very site. I’m hosted with Webfaction, a great hosting provider for developers who want flexibility without having to deal with server administration. A lot of packages are already installed and configured on my server for me. Unison is not available by default, so I had to install it myself. Luckily, Webfaction lets you do that!

Here is how I did it.

Uninstall Chrome’s “Live HTTP Headers” Right Now

I’m very careful with the things I install on my computer, and the extensions I used in Google Chrome, my browser of choice.

Unfortunately, it seems that an extension I installed a long time ago, “Live HTTP Headers“, is now used to insert a random JavaScript file on all the sites you visit. That file will randomly generate an ad pop-up on any site, using the asgds_modal ID. That’s pretty bad. ?

If you use that extension, you’ll want to deactivate it right now!

It took me a little while to figure out where that pop-up was coming from, as the extension name hadn’t changed. The only tip was that the JavaScript file would sometimes return a 404, thus generating an error in my browser console. That led me to look at the Extension page in the Chrome store, only to realize the extension had already been removed from the store. That’s great, but it’d be great if they also removed the app from all browsers using it!

I’m now back to using the Network tab of the Developer tools for that kind of work, unless some of you know of a good extension I could use?

A little fun with CloudFlare

I like CloudFlare. They offer tools to protect your site, and a lot of their services are even free. For the most part, it’s a service you set once, and forget about.

That doesn’t mean you can’t have a little fun with it from time to time, though!

While tweaking my CloudFlare settings this morning, I decided to add a little Page Rule to redirect some of my site’s most dedicated bots to a very special YouTube page…

New CloudFlare Page Rule

Learn more about this little Page Rule

SSH Agent in macOS Sierra

I upgraded to macOS Sierra this weekend. The upgrade was mostly painless; I only had to switch from Karabiner to Karabiner Elements to customize my keyboard.

But when trying to update my remote development environment this morning, I ran into the first issue: ssh-agent didn’t seem to work anymore. My keys were not added to my keychain when accessing my remote sandbox with ssh -A mysandbox.

After a bit of googling, I found my answer. To fix the issue, and make sure I could use my keys even when connected to a remote sandbox, I added the following to my .ssh/config file:

Host *
        IdentityFile ~/.ssh/name_of_my_private_key_file
        AddKeysToAgent yes

Now on to the next problem!

Google Play Music / Avast: fix uploads from a Mac

Google Play Music is my music player of choice: it’s available everywhere, fully compatible with my Android device, and allows for easy download and upload of tracks. Its lucky mixes are also always on point. I use the free version for now, but I plan on switching to the Paid version once YouTube Red is available in Hungary (one can dream, right?). I believe the paid version gives you access to a library that’s way bigger than Spotify.

google-play-music.png

Google Play Music can be used via the web, or via a Chrome Extension. You could even use this Electron app if you wanted to. You can also use those tools to upload music from your local computer. However, that upload feature won’t work if you also happen to use Avast Mac Security. When you try to upload, you’ll receive the following error:

Can’t establish a secure connection

It seems that its Web and File System Shields block all uploads. To solve the issue, open Avast Mac Security, go to Preferences, and disable both shields. Don’t forget to turn them back on once you’re done with the upload!

avast-shields.png