Skip to content

Instantly share code, notes, and snippets.

View pkieltyka's full-sized avatar
🇨🇦
hi

Peter Kieltyka pkieltyka

🇨🇦
hi
View GitHub Profile
package main
import (
"bytes"
"fmt"
"github.com/codegangsta/martini"
"github.com/rainycape/magick"
"io/ioutil"
"log"
"net/http"
package main
import (
"bytes"
"fmt"
"github.com/codegangsta/martini"
"github.com/rainycape/magick"
"io/ioutil"
"log"
"net/http"
package main
import (
"bytes"
"fmt"
"github.com/rainycape/magick"
"io/ioutil"
"log"
"net/http"
"runtime"
@pkieltyka
pkieltyka / gist:9313659
Created March 2, 2014 20:49
imagemagick homebrew with libjpeg-turbo
require 'formula'
class Imagemagick < Formula
homepage 'http://www.imagemagick.org'
# upstream's stable tarballs tend to disappear, so we provide our own mirror
# Tarball and checksum from: http://www.imagemagick.org/download
url 'http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.8.7-7.tar.bz2'
sha256 '4d8b0889d78cca2f1501b5f66f61c5efcd2f585a03002f2a7b407c11808e5e28'
ID TYPE ITEMS OVRFLW
======== ========== ====== ======
0 meta 0
1 meta 0
2 freelist 0
3 buckets 1
4 leaf 4 78
83 leaf 4 104
188 unknown<3100> 36340 2017852872
package main
import (
"errors"
"time"
"github.com/garyburd/redigo/redis"
)
var pool *redis.Pool = &redis.Pool{}
package main
import (
"fmt"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
var (
ID TYPE ITEMS OVRFLW
======== ========== ====== ======
0 meta 0
1 meta 0
2 freelist 3
3 leaf 1
4 leaf 4 191
196 leaf 5018 4201016681
This file has been truncated, but you can view the full file.
ID TYPE ITEMS OVRFLW
======== ========== ====== ======
0 meta 0
1 meta 0
2 free
3 free
4 free
5 free
6 free
7 free
stdlog.SetOutput(func() io.Writer {
return func(p []byte) (n int, err error) {
n = len(p)
anotherlog.Info("%s", p)
return
}
}())