Skip to content

Instantly share code, notes, and snippets.

View shmink's full-sized avatar
:shipit:
On the case

Tom Nicklin shmink

:shipit:
On the case
View GitHub Profile
@shmink
shmink / build-and-run-docker.sh
Created April 3, 2020 01:10
Build and run docker
echo "Building..."
docker build -t my-app:latest .
echo "\nRunning..."
docker run --rm -it -p80:4000 my-app:latest
@shmink
shmink / Dockerfile
Created April 3, 2020 00:28
Elixir dockerfile
FROM elixir:1.10-alpine
ENV MIX_ENV=prod
COPY lib ./lib
COPY mix.exs .
COPY mix.lock .
RUN mix local.rebar --force \
&& mix local.hex --force \
&& mix deps.get \
&& mix release
@shmink
shmink / Dockerfile
Created April 3, 2020 00:07
Elixir releases Dockerfile
# ---- Build Stage ----
FROM elixir:1.10-alpine as builder
ENV MIX_ENV=prod
COPY lib ./lib
COPY mix.exs .
COPY mix.lock .
RUN mix local.rebar --force \
&& mix local.hex --force \
&& mix deps.get \
&& mix release
@shmink
shmink / settings.json
Last active January 16, 2020 11:07
VS Code Peacock extension Dracula colours
"peacock.favoriteColors": [
{
"name": "Dark",
"value": "#44475a"
},
{
"name": "Light",
"value": "#f8f8f2"
},
{
@shmink
shmink / Eex.json
Last active March 15, 2019 19:21
HTML && EEx snippets
{
//
// EEx
//
"eex_render_block": {
"prefix": "e=",
"body": ["<%= $1 %>$0"],
"description": "<%= %> render block"
},
"eex_exec_block": {
@shmink
shmink / docker-compose.yml
Last active March 12, 2019 00:01
local docker MySQL server for local development
version: '3'
services:
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "app"
MYSQL_PASSWORD: "app"

Keybase proof

I hereby claim:

  • I am Shmink on github.
  • I am shmink (https://keybase.io/shmink) on keybase.
  • I have a public key whose fingerprint is BDFB 7559 2071 05AF E081 9275 FF7F BDAF 6C0E E8E1

To claim this, I am signing this object: