- Set up a WSL development environment
- Install Docker without Docker Desktop
- Install Docker Engine on Ubuntu
- After install:
sudo service docker start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package envcompare_test | |
import ( | |
"net" | |
"testing" | |
"github.com/caarlos0/env/v6" | |
envsimpler "github.com/go-simpler/env" | |
"github.com/kelseyhightower/envconfig" | |
"github.com/sirupsen/logrus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//nolint:forbidigo,dupl | |
package jwt_test | |
import ( | |
"crypto/ecdsa" | |
"crypto/ed25519" | |
"crypto/elliptic" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testutil | |
import ( | |
"bytes" | |
"flag" | |
"os" | |
"testing" | |
"github.com/prometheus/client_golang/prometheus" | |
"github.com/prometheus/common/expfmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
users: | |
- name: alex | |
groups: sudo, docker | |
shell: /bin/bash | |
lock_passwd: false | |
ssh_authorized_keys: | |
- ssh-ed25519 ??? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
elasticsearch: | |
image: elasticsearch:8.5.2 | |
volumes: | |
- elasticsearch-data:/usr/share/elasticsearch/data | |
environment: | |
- ES_JAVA_OPTS=-Xms512m -Xmx512m | |
- discovery.type=single-node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Nemo Action] | |
Name=Open in VSCode | |
Comment=Open in VSCode | |
Exec=code %F | |
Icon-Name=window-new | |
Selection=Any | |
Extensions=dir;exe;dll;zip;gz;7z;rar; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package requirex | |
import ( | |
"testing" | |
"github.com/stretchr/testify/require" | |
) | |
// Equal wraps require.Equal and adds unscaling of decimal.Decimal values. | |
// It prevents tests from failing if expected and actual decimal.Decimal values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type env struct { | |
logLevel string | |
httpAddr string | |
natsURL string | |
mongoURI string | |
mongoDatabase string | |
stripeAPIKey string | |
stripeWebhookSigningSecret string | |
stripeOpenWeatherSubscriptionPriceID string | |
stripeRedirectsURL string |