Skip to content

Instantly share code, notes, and snippets.

Moshe Bergman mb-dev

Block or report user

Report or block mb-dev

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

Keybase proof

I hereby claim:

  • I am mb-dev on github.
  • I am moshebergman ( on keybase.
  • I have a public key whose fingerprint is BA8B EAD0 22D9 E891 363B 285A A745 B085 40C2 AA2E

To claim this, I am signing this object:

mb-dev / gist:3feb7e2b98f1867fde52
Last active Aug 29, 2015
Jewish Film Festival
View gist:3feb7e2b98f1867fde52

Anywhere else:

![Anywhere else][1] A graduate student in Berlin, Noa seems to be on the right track: She has almost completed her thesis and has just moved in with her German musician boyfriend, Jörg. But when her grant application is turned down, and her advisor deems her project—a dictionary of words that defy translation—unsuitable, all the pressures of living in a foreign country far away from her native Israel are too much for the already stressed-out Noa to handle...

Site: Trailer:

  • Castro Theatre - Tue, Jul 29 1:45 PM
try: (object, property) ->
if object? then object[property] else null
isBlank: (str) ->
(!str || /^\s*$/.test(str))
View pxtoem.scss
@function pxtoem($pxval, $base: 14) {
@if (unitless($pxval)) {
$pxval: $pxval * 1px;
@if (unitless($base)) {
$base: $base * 1px;
@return $pxval / $base * 1em;
View app.js
var app = require('http').createServer(handler)
, io = require('').listen(app)
, fs = require('fs')
var config = require('./settings.js')
function handler (req, res) {
fs.readFile(__dirname + '/index.html',
View Vagrantfile = "quantal64"
VAGRANT_JSON = MultiJson.load(Pathname(__FILE__).dirname.join('nodes', 'localhost.json').read)
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["site-cookbooks", "cookbooks"]
chef.roles_path = "roles"
chef.data_bags_path = "data_bags"
chef.provisioning_path = "/tmp/vagrant-chef"
chef.encrypted_data_bag_secret_key_path = "./data_bag_key"
View Cheffile
cookbook 'apt', '1.7.0'
cookbook 'apache2', '>= 1.0.0'
cookbook 'rvm', :git => ''
cookbook 'git', git: ''
cookbook 'redisio'
cookbook 'mysql'
cookbook 'ruby_build', '0.7.2'
cookbook 'firewall'
cookbook 'ssh_known_hosts'
cookbook 'mongodb', git: 'git://'
mb-dev /
Last active Dec 16, 2015
Getting started
knife solo init .
librarian-chef init
librarian-chef install
vagrant box add quantal64
vagrant init quantal64
vagrant up
mb-dev / Gemfile
Created Apr 25, 2013
Chef Gemfile
View Gemfile
gem 'chef', '10.16.2'
gem 'knife-solo'
gem 'knife-solo_data_bag'
gem 'librarian'
gem 'ffi', '~> 1.2.0'
gem 'vagrant', "~> 1.0.5"
gem 'multi_json'
form_prefix = 'chapter'
if(data.errors and data.errors.messages and _(data.errors.messages).keys().length > 0)
_(data.errors.messages).each (value, key, list) =>
@activeView.$el.find('#' + form_prefix + '_' + key).closest('.control-group').addClass('error')
$('<span class="help-inline">' + value + '</span>').insertAfter(@activeView.$el.find('#' + form_prefix + '_' + key))
You can’t perform that action at this time.