Skip to content

Instantly share code, notes, and snippets.

View MatthewJamesBoyle's full-sized avatar

Matt Boyle MatthewJamesBoyle

View GitHub Profile
# Start from the official Go image to build your application
FROM golang:1.21 as builder
# Set the Current Working Directory inside the container
WORKDIR /app
# Copy go mod and sum files
COPY go.mod go.sum ./
# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
@MatthewJamesBoyle
MatthewJamesBoyle / DOCKERFILE
Last active March 11, 2024 15:57
production go dockerfile
FROM golang:1.21.0-bullseye as builder
COPY . /workdir
WORKDIR /workdir
ENV CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all"
ENV GOFLAGS="-buildmode=pie"
RUN go build -ldflags "-s -w" -trimpath ./cmd/app

Keybase proof

I hereby claim:

  • I am matthewjamesboyle on github.
  • I am mattboylecurve (https://keybase.io/mattboylecurve) on keybase.
  • I have a public key ASDM6URJh596EM3IQrZ0NHbA3pcWFI202vz0QUxcxvq7Nwo

To claim this, I am signing this object:

@MatthewJamesBoyle
MatthewJamesBoyle / error
Last active March 9, 2017 11:22
webpack config
fontawesome-webfont.svg?912ec66d7572ff821749319396470bde 444 kB [emitted] [big]
chunk {0} extract-text-webpack-plugin-output-filename 36.5 kB [entry]
[0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
[1] ./src/style/font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0 102 bytes {0} [built]
[2] ./src/style/font-awesome/fonts/fontawesome-webfont.eot 305 bytes {0} [built] [failed] [1 error]
[3] ./src/style/font-awesome/fonts/fontawesome-webfont.eot?v=4.7.0 313 bytes {0} [built] [failed] [1 error]
[4] ./src/style/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0 318 bytes {0} [built] [failed] [1 error]
[5] ./src/style/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0 320 bytes {0} [built] [failed] [1 error]
[6] ./src/style/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0 319 bytes {0} [built] [failed] [1 error]
[7] ./~/css-loader!./src/style/font-awesome/css/font-awesome.min.css 33.3 kB {0} [built]
stdClass Object
(
[name] => RUN ON: 04/05/15 02:22 PM
[activityId] => 4038000000016924187710009732248116689150
[activityType] => RUN
[appId] => CONNECT
[timeZone] => +01:00
[timeZoneId] => GMT+01:00
[dstOffset] => 00:00
[startTimeUtc] => 2015-04-05T14:22:32+01:00
package com.example.social;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.Menu;
import android.view.MenuItem;