Configure Visual Studio Code

Insert 2 spaces into the .yml and .yaml files when we press the tab key Start Visual Studio Code Open the Settings page Enter yml into the search field and press enter Click the Edit in settings.json link Enter into the settings.json file “[yaml]”: {“editor.insertSpaces”: true,”editor.tabSize”: 2,”editor.autoIndent”: false} Start Visual Studio Code from the command line […]

You must specify a region. You can also configure your region by running “aws configure”.

When we execute an AWS CLI command, we need to supply the AWS Region. If it is not specified, we get the error message: You must specify a region. You can also configure your region by running “aws configure”. We can add the region with the –region command line argument, or store it in the […]

x509: certificate signed by unknown authority

I have built a Docker container with a Go application that used the Go AWS SDK. When my program tried to access an S3 bucket I got the error message RequestError: send request failedcaused by: Get x509: certificate signed by unknown authority To solve the problem I had to add the following line to […]

Docker for Windows cannot start: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”

To start Docker on Windows, Hyper-V and the Hypervisor has to be enabled on Windows. Start a PowerShell window as administrator Enable Hyper-V dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All Enable the Hypervisor bcdedit /set hypervisorlaunchtype auto Restart the computer

List the Active Directory groups the user is a member of

To list the Active Directory groups where the current user is a member, execute in the PowerShell window To get the Active Directory groups for another user, replace THE_USER_NAME with the Active directory user name of the person. (New-Object System.DirectoryServices.DirectorySearcher(“(&(objectCategory=User)(samAccountName=THE_USER_NAME))”)).FindOne().GetDirectoryEntry().memberOf

Using Go packages

To use a public package in your Go application add the line to the top of your program to import the package import “″ If this is the first time you are using the package, the error message appears in the output window of Atom when you save the file cannot find package “” in […]