Skip to content

Instantly share code, notes, and snippets.

View strideynet's full-sized avatar
⛷️
Wishin I was skiin'

Noah Stride strideynet

⛷️
Wishin I was skiin'
View GitHub Profile
@adtac
adtac / Dockerfile
Last active April 13, 2024 22:33
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@zmb3
zmb3 / static_cgo.md
Created October 5, 2020 15:45
Compile static binaries for Go programs that leverage Cgo.

In order to compile a fully static binary when using Cgo you'll need to link in a C library like musl.

I find it convenient to have a Docker image ready for building these artifacts.

FROM golang
RUN wget https://www.musl-libc.org/releases/musl-1.2.0.tar.gz && \
   tar -zf musl-1.2.0.tar.gz && \
   cd musl-1.2.0 && \
 ./configure --enable-static --disable-shared && \
@EronWright
EronWright / index.ts
Created February 14, 2020 04:28
Pulumi example for GKE Workload Identity
/*
Creates a GCP service account named 'test-workload-identity' to be used
by a GKE workload using a Kubernetes service account named 'default/default'.
*/
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const gcpConfig = new pulumi.Config("gcp");
const projectId = gcpConfig.get("project");