Google SDK Update

How to upgrade Google SDK on Redhat, Fedora and Centos Linux.

gcloud components update

If you are having trouble running that command because the GCloud component manager is disabled, you can try the following commands which will achieve the same result as above.

sudo yum makecache && sudo yum update \
kubectl \
google-cloud-sdk \
google-cloud-sdk-app-engine-grpc \
google-cloud-sdk-pubsub-emulator \
google-cloud-sdk-app-engine-go \
google-cloud-sdk-cloud-build-local \
google-cloud-sdk-datastore-emulator \
google-cloud-sdk-app-engine-python \
google-cloud-sdk-cbt \
google-cloud-sdk-bigtable-emulator \
google-cloud-sdk-datalab \
google-cloud-sdk-app-engine-java

Windows 10 Activation

I recently upgraded my system which involved a new motherboard. I brought over the old hard drive from my previous machine to the new one. I booted it. Bang! And just like that Microsoft deactivated my account. I called them. They said they have no record of it based on the email addresses that I’ve provided.

I told them that I’ve upgraded from Windows 7 to Windows 10 a few years back. Microsoft proceeded to tell me that I needed to provide them my Windows 7 product key. Now, I have to look for it. I have no idea where it is. If I can’t find it. I won’t be able to activate it. I’m sure I’m not the only who got screwed for upgrading their hardware.

Windows 10 Activation

Essentially, I’m back to using Linux again, which by the way don’t have draconian methods for simple things like hardware changes.

Upgrade Firefox in Linux Mint

I fired up my old Linux PC which runs on Linux Mint. I noticed the default Firefox browser is quite old. It needs an upgrade, which is expected since this Linux Mint version is 18.1. The current version is 19.1. So, here are the steps to upgrade Firefox in Linux Mint.

Download Firefox.

wget https://www.mozilla.org/en-US/firefox/download/thanks/

Extract.

cd ~/Downloads/
tar xjf firefox-64.0.2.tar.bz2

Move Firefox.

mv firefox /opt/firefox

Create a symbolic link.

ln -s /opt/firefox/firefox /usr/bin/firefox

The old icons should still work. Enjoy.

Update PHP Stable Release on Mac

PHP is installed by default on all Macs since OS X version 10.0.0. You can install and use MAMP, but if you prefer to use the pre-loaded version of PHP, then you may need to update it to the latest stable release. Fortunately, there’s a binary package out there that will simplify your life.

If you like to install PHP 5.6 stable release, all you need to do is run the following from the command line:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

If you feel adventurous, you can try PHP 7 stable release.

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0

The installer packager will ask you for your password. PHP will be installed in /usr/local/php5.

Edit your .profile and include the PATH of the new PHP version.

nano ~/.profile

Insert the following:

export PATH=/usr/local/php5/bin:$PATH

To be sure your using the new version, check the PHP version:

php -v

You should see something similar to this:

PHP 5.6.19 (cli) (built: Mar  4 2016 22:35:42) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

You now have the latest PHP 5.6 stable release.