Aug 02, 2024   

https://auth0.com/docs/secure/tokens/json-web-tokens/locate-json-web-key-sets To convert a JWKS (JSON Web Key Set) `x5c` (X.509 certificate chain) to  ... Read more



        Apr 06, 2019   

When a client sends  an HTTPs request to a TLS server, the client verifies the server's certificate during the handshake. To do so, the client side mu  ... Read more



        Sep 02, 2018   

1.  Go to this page and download "Driver Install Tool" Unzip the downloaded file. $ gunzip linux-brprinter-installer-*.*.*-*.gz 2. Change to root user  ... Read more



        Sep 01, 2018   

A tutorial on how to build Kubernetes cluster on Raspberry Pi can be found here. However, there were problems when I follow it, possibly because it is  ... Read more



        Jun 15, 2018   

You can embed a struct inside another one without giving it a name. For example, type Foo struct { Bar } type Bar struct { ID string } The field Bar i  ... Read more



        Mar 10, 2018   

It seems there is no official Linux driver for TP-Link T9E AC1900 fromTp-Link website. However, you can install Broadcom driver for this model. On Ubun  ... Read more



        Jan 10, 2018   

"Map lookup requires an equality operator, which slices do not implement. They don't implement equality because equality is not well defined on such ty  ... Read more



        Jan 10, 2018   

What is Kafka "Apache kafka is a distributed streaming platform. It lets you publish and subscribe to streams of records; it lets you store streams of  ... Read more



        Oct 23, 2017   

When editing a html file in vim, the http links are automatically underlined by default. To disable it do the following. $cp /usr/share/vim/vim72/synta  ... Read more



        Oct 23, 2017   

Sometimes I need to copy files from my windows laptop to my Linux server.  One easy way to do is to use pscp. pscp is an SCP client which can run on W  ... Read more



        Sep 20, 2017   

Golang's package expvar exp oses var iables via HTTP.  Operations on the exposed varibles are atomic. It can be used for the purpose of web page ana  ... Read more



        Aug 06, 2017   

~/.config/sxhkd/sxhkdrc file # # wm independent hotkeys # # terminal emulator alt + Return gnome-terminal # program launcher alt + space dme  ... Read more



        Aug 06, 2017   

Follow the instructions descibed in bspwm for dummies and https://github.com/baskerville/bspwm/wiki to install bspwm. Install dmenu. sudo apt-get ins  ... Read more



        Apr 28, 2017   

imagemagick software suite is used to processing images on Linux. It can be used to capture screen as well. $ sudo aptitude install imagemagick To ca  ... Read more



        Apr 20, 2017   

x ^ 0s = x x & 1s = x x & x = x x | x = x x | 0s = x x ^ 1s = ~x x ^ x  = 0s x & 0s = 0s x | 1s = 1s a ^ b ^ a = b a ^ b ^ b = a Shifting  ... Read more



        Apr 20, 2017   

Interface in Go is a type which provides a way to specify the behavior of objects: if something can do this, then it can be used here. So interface is  ... Read more



        Apr 20, 2017   

RPC server registers two paths ( /_goRPC_ and /debug/rpc ) and their handlers as HTTP server. The handler of /debug/rpc handles the http requests and  ... Read more



        Apr 20, 2017   

This is an example that access exported members from a unexported struct. // pk/pk.go package pk type point struct { X, Y int } func NewPoint(x,  ... Read more



        Apr 20, 2017   

1. strings.Reader func NewReader(s string) *Reader 2. bytes.Buffer implements io.Reader, io.Writer interface. func NewBuffer(buf []byte) *Buffer fun  ... Read more



        Apr 20, 2017   

func SHA1(s string) []byte { h := sha1.New() io.WriteString(h, s) v := h.Sum(nil)  ... Read more





Older Posts