Mar 292018

ADM

How to check if file exists in Golang

  • 29 March 2018
  • ADM

How to check if a file exists in Golang using os.Stat method. A FileInfo describing the named file or an error is returned.

Mar 232018

ADM

How to marshal a JAXB object into org.w3c.dom.Document

  • 23 March 2018
  • ADM

How to marshal a JAXB object into org.w3c.dom.Document using Transformer class and formatted console print.

Mar 102018

ADM

How to Install GoLang 1.10 on Ubuntu

  • 10 March 2018
  • ADM

How to Install GoLang 1.10 on Ubuntu. This can be applied to any Golang version and for any Ubuntu version.

Mar 052018

ADM

Git ignore file mode chmod changes

  • 05 March 2018
  • ADM

How to make Git to ignore file modified by chmod changes. Using core.fileMode git config.

Mar 162018

ADM

How to stop and remove all Docker containers

  • 16 March 2018
  • ADM

How to stop and remove all Docker containers using two commands. Useful for fresh restart or when you run out of disk space.

Mar 162018

ADM

How to setup a proxy with authentication for HTTP client in Golang

  • 16 March 2018
  • ADM

How to setup a proxy with authentication for HTTP client in Golang example using http.Transport and http.Client. Simple example calling httpbin.org test server.