Author Archives: admin

Hello Website on GKE Cluster

Let’s explore, how deploy web application “Hello Website” written in go language at Google Kubernetes Engine Cluster. Source code for “Hello Website” in the file helloweb.go Source code for dockerfile Steps: At https://console.cloud.google.com/apis/library search for Kubernetes (k8s) and then enable … Continue reading

Posted in golang, workday | Tagged | Leave a comment

GCP notes

Setup Creating an account Creating a new projectNo org, org(G Suite, Cloud Identity)Project-id is unique Deleting projectProject settings: ShutdownIAM & Admin / Manage resources: Delete Creating usersIAM: Add user@companyGSuite_gserviceaccount_googlegroups_gmail.comIAM: Add user@nonGoogle_AD_LDAP / Google Cloud Directory Sync Assigning rolesPrimitive(Owner,Editor,Viewer)Predefined (~500 roles)Custom … Continue reading

Posted in Blogroll, workday | Leave a comment

Rotating prompt color

If one has more that one terminal window opened, it’s sometimes hard to tell what is where. Here is example of the file ~/.bash_profile, which is always executed, if new terminal window is opened. Numeric value of the previous prompt … Continue reading

Posted in workday | Leave a comment

Elapsed time on bash

Once a while is nice to measure elapse time on Linux on bash command line.Here is an example how to count elapsed seconds:

Posted in workday | Leave a comment

Marketing

“Marketing isn’t about shortcuts, hustle or deception. Marketing is the art (and the science) of serving the people you seek to serve, to do better work by finding and satisfying needs. Marketing is the practice of making things better by … Continue reading

Posted in workday | Leave a comment

Short decimal ASCII characters table

Seven bit characters ASCII table is with us long time. Once a while we need to know value of ASCII character, mostly out of the alphabet characters. For example on Windows it’s possible to type any character by pressing <ALT> … Continue reading

Posted in golang, workday | Tagged , | Leave a comment

data:text/html, <html contenteditable> … and CTRL+S … in Chrome!

See Handy notepad in Chrome tab or window, this time in title what one could have in bookmarks. CTRL+<S> can save file into the file system.

Posted in workday | Leave a comment

Sending money by paypal

Paypal is a convenient way, how to send money. However, it is not for free. For example for not profit organizations inside of the USA is fee 2.2% plus fixed fee $0.30. If someone would send to organization $102.55, organization … Continue reading

Posted in workday | Leave a comment

go: Marshal and Unmarshal json

Here is an example playing with json, see https://play.golang.org/p/fHA1im6vPIG

Posted in golang, workday | Leave a comment

go: Legacy character encoding conversion to UTF-8

Go language is using UTF-8 encoding, but sometimes text files are encoded in some other encoding, like Windows-1250. Here is example, how it could be done https://play.golang.org/p/K3JAeM4nCVD Decoding table used in this program was developed from page CP1250.TXT at ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/ … Continue reading

Posted in golang, workday | Leave a comment