Skip to content

Instantly share code, notes, and snippets.

View cheleb's full-sized avatar

Olivier NOUGUIER cheleb

View GitHub Profile
@cheleb
cheleb / 0:files.md
Last active August 29, 2015 14:12
postfix / macosx

Create or modify this files:

  • /System/Library/LaunchDaemons/org.postfix.master.plist to create (or modify) This is the launchctl file.
  • /etc/postfix/main.cf to append to. This id the postfix configuration file.
  • /etc/postfix/sasl_passwd to create or modify This the sasl password file that must be filled with your google application password settings.
//Avec pattern matching
get("/track/:id") { request =>
val result = request.routeParams.getOrElse("id") match {
case None => Map("track2" -> "larzac", "track1" -> "salagou")
case Some(id) => Map("track1" -> "salagou")
}
render.json(result)
}