Skip to main content

Posts

Showing posts from June, 2018

Bash: How to uninstall custom go package via shell script?

The Go command line tool do not provide package cleaning option. At max it can remove object files and cached files which will remove executable file from bin folder and from pkg folder. But the source files would still be there. So if you want to completely remove the package then you have to do it manually. Otherwise, create your own script to do this.  Alternatively, you can use below script. Just put it somewhere so that it could be globally accessible. Here is a shell script that can completely clean the go package that you have installed by using go get <package> command. File : goclean.sh #!/bin/env bash goclean() { local pkg=$1; shift || return 1 local ost local cnt local scr echo "Clean removes object files from package source directories (ignore error)" go clean -i $pkg echo "Set local variables" if [ "$(uname -m)" == "x86_64" ]; then ost="$(uname)"; o

Blink: Eight factors will combine to create the first trillion-dollar company.

The Four Horsemen – Amazon, Apple, Facebook and Google – dominate not only our online experience but the whole corporate world. The Four have become the world’s most valuable companies. They’ve reached their success by appealing to our deep human desires while also engaging in some questionable practices. And while there’s no doubt they’ll be around for a while, at some point, one of Four might disappear, or a fifth horseman might arise. In the meantime, it’s best to learn how to thrive in the world they’ve created. The Four Horsemen dominate the world today. But might a fifth horseman emerge and unsaddle these other riders? If that were to happen, this fifth horseman could well become the first company with a market valuation of $1 trillion. According to the author, there are eight attributes that a fifth horseman would need to possess in order to become the first trillion-dollar company. Since “trillion” is the key word, he calls these combined attributes the T Algorithm