Skip to content

Instantly share code, notes, and snippets.

View gordalina's full-sized avatar
🚀

Samuel Gordalina gordalina

🚀
View GitHub Profile
@gordalina
gordalina / Dockerfile
Last active November 5, 2022 02:02
Tier as a sidercar in docker compose
######################################
FROM golang:1.19-alpine3.16 as builder
ARG TIER_VERSION
ENV TIER_VERSION=${TIER_VERSION}
WORKDIR /go/tier
ENV CGO_ENABLED=0
RUN apk add git alpine-sdk
### Keybase proof
I hereby claim:
* I am gordalina on github.
* I am gordalina (https://keybase.io/gordalina) on keybase.
* I have a public key whose fingerprint is FBD6 9CB2 26EE 7767 DCE8 ECCF F7E8 BD49 9091 83F5
To claim this, I am signing this object:
@gordalina
gordalina / Example.php
Created May 17, 2013 08:40
Resolve Link headers into entities and inject them in the request attributes
<?php
// Controller
public function linkAction(Request $request)
{
if (false === $request->attributes->has('link')) {
throw new HttpException(400, 'Link header was not provided');
}