This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"flag" | |
"net/http" | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func Vermut() *martini.ClassicMartini { | |
r := martini.NewRouter() | |
m := martini.New() | |
m.Use(martini.Logger()) | |
m.Use(martini.Recovery()) | |
// pass cached images to thumbnailer | |
m.Use(NewThumbnailer("public")) | |
cache := martini.NewRouter() | |
cache.Group("/cache", cacheHandler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Patrick Wieschollek | |
# ============================================================= | |
# UPDATE SOURCE | |
# ============================================================= | |
git checkout -- . | |
git pull origin master | |