Skip to content

Instantly share code, notes, and snippets.

View evantill's full-sized avatar

Eric Vantillard evantill

View GitHub Profile
@evgeny-goldin
evgeny-goldin / gist:636b408832524542c789
Last active October 13, 2022 15:12
Downgrade Boot2Docker and Docker from 1.3.0 to 1.2.0 on OS X
Based on http://stackoverflow.com/a/4158763/472153:
* brew tap homebrew/boneyard
* cd $( brew --prefix )
* brew versions docker
* git checkout 9ccfc7e Library/Formula/docker.rb
* brew unlink docker
* brew install docker
* brew switch docker 1.2.0
@codeinthehole
codeinthehole / docker-osx-shared-folders.rst
Last active November 11, 2023 01:22
How to share folders with docker containers on OSX

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

@prwhite
prwhite / Makefile
Last active April 13, 2025 10:00
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing
@christophercliff
christophercliff / description.md
Last active February 24, 2019 23:30
Stream email attachments to S3 with Mailgun, node.js.
@arosien
arosien / runar-io-free.scala
Last active September 10, 2016 07:17
Translation of Runar's ScalaIO 2013 presentation on IO and Free monads (http://blog.higher-order.com/assets/scalaio.pdf) to scalaz.
import scalaz._
import Scalaz._
import Free._
/** "Pure" interactions with a console. */
sealed trait Console[+A]
case class GetLine[A](k: String => A) extends Console[A]
case class PutLine[A](s: String, a: A) extends Console[A]
object Console {
@milessabin
milessabin / gist:7136706
Last active December 26, 2015 10:29
My crib sheet from the shapeless workshop @ Scala IO.
package scalaio
import shapeless._, poly._
object list extends (Id ~> List) {
def apply[T](t : T) = List(t)
}
object headOption extends (List ~> Option) {
def apply[T](l : List[T]) = l.headOption
@millermedeiros
millermedeiros / osx_setup.md
Last active March 23, 2025 01:23
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@etorreborre
etorreborre / gist:6238633
Created August 15, 2013 06:09
A checkAll method to check ScalaCheck Properties with immutable specifications
import org.specs2._
import org.scalacheck.Properties
import org.specs2.matcher._
/**
* [info] TestSpec
* [info] MyProps must satisfy
* [info]
* [info] + MyProps.myProp1
* [info] + MyProps.myProp2
@retronym
retronym / instruction.sh
Last active December 17, 2015 00:29
scala-2.10
sudo gem install keydown # optional, only needed if you update the markdown.
git clone [email protected]:retronym/talks.git
git clone -b topic/play-keydown [email protected]:retronym/replhtml.git && cd replhtml
sbt -Dkeydown.root=$PWD/../talks/scala-2.10 run
open http://localhost:8080
@balupton
balupton / README.md
Last active April 29, 2019 11:57
DocPad: Use DocPad, GitHub & Prose as a Wiki

Use DocPad, GitHub and Prose as a Wiki

This guide will walk you through how you can use a GitHub repository to house your wiki content, have DocPad render it, and automatically update on changes. It's also really nice as we get to benefit from the github project workflow for our wiki, that is issues, pull requests, etc.

We use this workflow heavily by linking the DocPad Website and the DocPad Documentation repositories allowing us to have users edit and submit pull requests for improvements to our documentation, and once merged, the website regenerates automatically.

1. Create a new repository for your Wiki Content