Skip to content

Instantly share code, notes, and snippets.

@petermueller
petermueller / awk_netstat.sh
Last active March 4, 2025 19:37 — forked from qistoph/awk_netstat.sh
AWK to get details from /proc/net/tcp and /proc/net/udp when netstat and lsof are not available
#! /bin/env bash
# Install
# - Get the "raw" link for the most current SHA of the file
# - Use that to download the file and chmod +x it to make it executable
# e.g.
# curl -o awk_netstat.sh https://gist.githubusercontent.com/.../awk_netstat.sh
# chmod +x awk_netstat.sh
@petermueller
petermueller / release.Dockerfile
Created March 16, 2021 13:38 — forked from kyleVsteger/release.Dockerfile
Multistage Elixir 1.11 Phoenix Live View Release Dockerfile
ARG ALPINE_VERSION=3.12.0
FROM hexpm/elixir:1.11.0-erlang-23.1.1-alpine-3.12.0 as builder
ARG APP_VSN="1.0.0"
# Replace `your_app` with your otp application name.
ENV APP_NAME=your_app \
APP_VSN=${APP_VSN} \
MIX_ENV=prod