The error came during authentication of pubsub subscriber. The error log is misleading and point to a problm with the service account key file. However, the source code to process the logic is as follows: https://github.com/googleapis/google-auth-library-ruby/blob/master/lib/googleauth/credentials.rb # Verify that the keyfile argument is a file. def verify_keyfile_exists! keyfile […]
A voyager on the journey to technology and art of software development. Pursuing arts, music, photography, and ways to live life on the edge
The first thing to keep in mind is permissions!. Objective Deploy an HTTP service(Cloud Function) on Cloud Run (fully managed) by using Cloud Endpoint (HTTP Proxy) and expose the service publically through a proxy, ESP (External Service Proxy). Basic Concepts The service is a definition of HTTP methods […]
I started facing go tool: no such tool “compile” error after installing a local build of go. The golang source was in /usr/local $ cd /usr/local $ ls total 41240 drwxr-xr-x@ 19 root wheel 608B Oct 18 19:35 go drwxr-xr-x 16 root wheel 512B Oct 18 19:35 . […]
Golang is extremely explicit with types. It supports constants of a type. But how about a const 2 or hello. What type would they assume!? Go solved this problem with untyped constants. Untyped means: A constant’s type depends on the type of assignee variable. The assignee’s type must […]
Visit the Google Cloud Console and navigate to clusters https://console.cloud.google.com/kubernetes/list Here you will see all of your clusters. Next, add a cluster to your kubectl context. $ gcloud container clusters get-credentials –project my-project <cluster name> –region <cluster region> Done!
The simplest example of read_attr, write_attr in a class. class Person attr_reader :name, :age attr_writer :name, :age # creates the setter methods def initialize(name) [@name](http://twitter.com/name) = name end endmike = Person.new(‘Mike’) mike.age = 20 # calling setter method mike.age # calling getter method, returns 20 Reference The example […]
Forget about redis-cli. Just use nc bash-5.0# nc -v 10.x.x.x 6379 10.x.x.x (10.x.x.x:6379) open select 14 +OK What is ncat? NAME nc — arbitrary TCP and UDP connections and listens SYNOPSIS nc [-46AcDCdhklnrtUuvz] [-b boundif] [-i interval] [-p source_port] [-s source_ip_address] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [–apple-delegate-pid […]