How to start with google bigquery

Here is the list of thing I noticed when started to work with bigquery. First you need to create a project — https://cloud.google.com/bigquery/docs/quickstarts/quickstart-web-ui. That’s how you create a service key for bigquery — https://cloud.google.com/docs/authentication/getting-started. Select your project on the very top of the page, and then create JSON key. And don’t forget to set is …

Read more

Interesting alternative to grpc_cli

https://github.com/ktr0731/evans It has REPL mode and CLI mode for e2e tests I think, it could be a good alternative to grpc_cli.

Go library for creating slack bots

You can use it like that:

https://github.com/shomali11/slacker

How to work with core dumps of Go programs

If you want to check what is going on in your service during load (on production or during stress testing process), you can take a core dump of your app and load it into Goland for further debugging.

Then open it your Goland: Navigate to Run | Open Core Dump. In the Executable field, …

Read more

Nice introductory article on why Golang is not OOP

It is a copy of this article — https://rakyll.org/typesystem/ It is real struggle to work with a new language, especially if the type doesn’t resemble what you have previously seen. I have been there with Go and lost my interest in the language when it first came out due to the reason I was pretending …

Read more

How to install linux mint on hp

I’ve run into a problem — had a lot of error logging saying «PCIe Bus Error: severity=Corrected, type=Physical Layer», «AER Corrected error received», and similar. The problem is that it fills all the log space and the installation process cannot finish. You can run into it on HP laptops on monoblocks. What you can do.

How to watch tv on amazon Fire TV stick

You need to install some apps for that. Settings→My Fire TV→Developer options→Apps from Unknown Sources→ON. 🔍→Type «Downloader»→Click on it→Install. Home→Downloader→Type following link (https://smarttvnews.ru/wp-content/uploads/2017/03/LazyIPTV_2.44.apk)→Install. 🔍→Type «VLC Player»→Install. Home→Lazy IPTV→New playlist→From Internet(by url)→Type «https://smarttvnews.ru/apps/iptvchannels.m3u». Now you can watch it. Home→Lazy IPTV→Channel search→Select a channel you want. More on apps and playlists here — https://smarttvnews.ru/kak-besplatno-smotret-tv-kanalyi-na-android-ustroystvah-i-gde-skachat-besplatnyie-iptv-pleylistyi/ (in Russian).

A way to test http client in go

A couple of ways are described here — http://hassansin.github.io/Unit-Testing-http-client-in-Go The way I liked is the following one:

Setup local Athens for proper go mod

There is a project called Athens for proxying all your go mod downloads. How to use it locally. 1. Create the following files and directories: a. /Users/d.bolgov/.ssh-athens/storage — empty directory to cache go modules b. /Users/d.bolgov/.ssh-athens/.netrc — if you prefer using .netrc

c. /Users/d.bolgov/.ssh-athens/gitconfig/.gitconfig — if you want to substitue some urls. I personally …

Read more

Port forwarding with kubectl

If you want some kubernetes pod to forward all the traffic to you local machine, you can do this: 1. get pod id with

2. forward exact port from it to you localhost with

And you can request you localhost to reach pod on selected port.