Skip to content

Instantly share code, notes, and snippets.

pid of running tcp app

lsof -wni tcp:3000

@adriagalin
adriagalin / Go: Multistage Docker build
Last active May 14, 2018 07:12
Go Multistage Dockerfile builder
# Builder stage
FROM golang:1.9 AS builder
LABEL MAINTAINER "Team Name <team@email.com>"
# Install tools required to build the project
RUN go get github.com/golang/dep/cmd/dep
# Add ssh key to clone private repos
ARG SSH_PRIVATE_KEY
COPY ${SSH_PRIVATE_KEY} /root/.ssh/id_rsa

Keybase proof

I hereby claim:

  • I am adriagalin on github.
  • I am adriagalin (https://keybase.io/adriagalin) on keybase.
  • I have a public key whose fingerprint is ED0B 6942 CD1C 615E 6B8E 1995 9EC7 7FFF 6BC8 7524

To claim this, I am signing this object:

@adriagalin
adriagalin / nginx-default-site.conf
Last active August 12, 2019 17:09
Nginx default configuration and default site configuration
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;