Skip to content

Instantly share code, notes, and snippets.

Štefan Ľupták EskiMag

Block or report user

Report or block EskiMag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4be05987f8e464d07634
iex(9)> files = [{'test.zip', "ABCBED"}]
[{'test.zip', "ABCBED"}]
iex(10)> :zip.create('mem', files, [:memory])
{:ok,
{'mem',
<<80, 75, ...>>}}
@dstrelau
dstrelau / app.rb
Created Nov 22, 2010
Gollum protected by HTTP Basic
View app.rb
require 'gollum/frontend/app'
require 'digest/sha1'
class App < Precious::App
User = Struct.new(:name, :email, :password_hash)
before { authenticate! }
helpers do
def authenticate!
You can’t perform that action at this time.