Skip to content

Instantly share code, notes, and snippets.

@martinos
martinos / minimal_build_rust.md
Last active February 6, 2019 14:36 — forked from ihrwein/README.md
Building minimal Rust containers with Docker multi stage builds

The built image for a hello world project is less than 8 MB.

Builder image (it'd be best to upload this image to Docker Hub. This is 100% percent reusable).

FROM ubuntu:latest

ENV TARGET=x86_64-unknown-linux-musl
ENV BUILD_DIR=/src/target/x86_64-unknown-linux-musl/release/
@martinos
martinos / foo_test.rb
Created March 22, 2017 15:22 — forked from xymbol/foo_test.rb
Inspired by "FP Concepts" talk by @martinosis at Ruby Montreal.
require "minitest/autorun"
module Foo
class << self
attr :add, :sub, :mul, :div
end
@add = -> (a, b) { a + b }.curry
@sub = -> (a, b) { a - b }.curry
@mul = -> (a, b) { a * b }.curry
@martinos
martinos / foo_test.rb
Created March 22, 2017 15:22 — forked from xymbol/foo_test.rb
Inspired by "FP Concepts" talk by @martinosis at Ruby Montreal.
require "minitest/autorun"
module Foo
class << self
attr :add, :sub, :mul, :div
end
@add = -> (a, b) { a + b }.curry
@sub = -> (a, b) { a - b }.curry
@mul = -> (a, b) { a * b }.curry
@martinos
martinos / Dockerfile
Last active December 20, 2015 11:29 — forked from shingara/Dockerfile
## Docker file of shingara/chruby container
FROM base
MAINTAINER Cyril Mougel "cyril.mougel@gmail.com"
RUN apt-get update
RUN apt-get install -q -y wget
RUN apt-get install -q -y ca-certificates
RUN apt-get install -q -y make

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server: