This file contains 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
# Ignore everything | |
* | |
*/ | |
# But not these files... | |
!.gitignore | |
!profile/README.md | |
# optional | |
# !.devcontainer/ |
This file contains 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
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/typescript-node | |
{ | |
"name": "Node.js & TypeScript", | |
"build": { | |
"dockerfile": "Dockerfile", | |
// Update 'VARIANT' to pick a Node version: 18, 16, 14. | |
// Append -bullseye or -buster to pin to an OS version. | |
// Use -bullseye variants on local on arm64/Apple Silicon. | |
"args": { |
This file contains 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
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/go-postgres | |
{ | |
"name": "Go & PostgreSQL", | |
"dockerComposeFile": "docker-compose.yml", | |
"service": "app", | |
"workspaceFolder": "/workspace", | |
// Configure tool-specific properties. | |
"customizations": { |
This file contains 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
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/rust | |
{ | |
"name": "Rust", | |
"build": { | |
"dockerfile": "Dockerfile", | |
"args": { | |
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye | |
// Use bullseye when on local on arm64/Apple Silicon. | |
"VARIANT": "buster" |
This file contains 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 Booleanish = boolean | "true" | "false"; | |
type CrossOrigin = "anonymous" | "use-credentials" | "" | undefined; | |
// export = JSX; | |
// export as namespace JSX; | |
declare namespace JSX { | |
interface HTMLProps<T> extends AllHTMLAttributes<T> {} | |
// type DetailedHTMLProps<E extends HTMLAttributes<T>, T> = E; |
This file contains 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
#!/usr/bin/env bash | |
# Treat unset variables and parameters other than the special parameters ‘@’ or | |
# ‘*’ as an error when performing parameter expansion. An 'unbound variable' | |
# error message will be written to the standard error, and a non-interactive | |
# shell will exit. | |
set -o nounset | |
# Exit immediately if a pipeline returns non-zero. | |
set -o errexit |
This file contains 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 keto | |
import ( | |
"context" | |
"fmt" | |
"net" | |
"github.com/testcontainers/testcontainers-go" | |
) |
This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
This file contains 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
# syntax=docker/dockerfile:1 | |
ARG GO_VERSION=1.21 | |
ARG DISTROLESS=static-debian11:nonroot-amd64 | |
FROM golang:${GO_VERSION} AS base | |
WORKDIR /usr/src | |
COPY go.* . |
This file contains 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 smtp | |
import ( | |
"crypto/tls" | |
"fmt" | |
"net/smtp" | |
"net/url" | |
"strings" | |
) |
OlderNewer