Here are some moderately secure methods for contacting me.
I'm brianscott
on Keybase
javascript:(function() { | |
javascript: Promise.all([ | |
import('https://unpkg.com/[email protected]?module'), | |
import('https://unpkg.com/@tehshrike/[email protected]'), | |
]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { |
import requests | |
# Get API token from environment variable | |
api_token = os.getenv('TAILSCALE_API_TOKEN') | |
tailnet_name = os.getenv('TAILSCALE_TAILNET_NAME') | |
# see if we have an API token | |
if api_token is None: | |
print("Please set TAILSCALE_API_TOKEN environment variable") | |
exit(1) |
func getEnvBool(key string) bool { | |
val := os.Getenv(key) | |
if val == "" { | |
return false | |
} | |
v, err := strconv.ParseBool(val) | |
if err != nil { | |
return false | |
} |
FROM golang:1.15-alpine AS build | |
RUN apk add --no-cache git | |
WORKDIR /go/src/project | |
COPY . /go/src/project | |
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/index <PROJECT PATH> | |
FROM scratch | |
COPY --from=build /bin/index /bin/index |
{ pkgs ? import <nixpkgs> {} # here we import the nixpkgs package set | |
}: | |
pkgs.mkShell { # mkShell is a helper function | |
name="dev-environment"; # that requires a name | |
buildInputs = [ # and a list of packages | |
pkgs.nodejs | |
pkgs.python3 | |
pkgs.go | |
pkgs.rustc | |
pkgs.wget |
sudo du -a /dir/ | sort -n -r | head -n 20 |
#!/bin/bash | |
set -e | |
GVERSION="1.7" | |
GFILE="go$GVERSION.linux-amd64.tar.gz" | |
GOPATH="$HOME/go" | |
GOROOT="/usr/local/go" | |
if [ -d $GOROOT ]; then | |
echo "Installation directory already exists $GOROOT" |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "go", | |
"request": "launch", | |
"mode": "exec", | |
"remotePath": "", |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "go", | |
"request": "launch", | |
"mode": "debug", | |
"remotePath": "", |