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.
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 |
# 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 |
Using:
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 { |
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 |
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...
import org.specs2._ | |
import org.scalacheck.Properties | |
import org.specs2.matcher._ | |
/** | |
* [info] TestSpec | |
* [info] MyProps must satisfy | |
* [info] | |
* [info] + MyProps.myProp1 | |
* [info] + MyProps.myProp2 |
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 |
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.