Skip to content

Instantly share code, notes, and snippets.

View mindreframer's full-sized avatar
🎯
Focusing

Roman Heinrich mindreframer

🎯
Focusing
View GitHub Profile
@mindreframer
mindreframer / 0_reuse_code.js
Created December 12, 2013 16:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mindreframer
mindreframer / list.md
Last active August 29, 2015 13:55
My Fav Software on fresh Mac OSX
@mindreframer
mindreframer / install.md
Created February 4, 2014 14:24
Install Lunchy
@mindreframer
mindreframer / links.md
Last active August 29, 2015 13:56
Manage your Dev Machine by Chef/Puppet
@mindreframer
mindreframer / mini_bundler.rb
Last active August 29, 2015 13:56
mini_bundler
#!/usr/bin/env ruby
#### Usage:
## ./mini_bundler -> will install gems
## ./mini_bundler cache -> will cache installed gem-file in vendor/cache
def execute(cmd)
log "CMD: #{cmd}"
%x(#{cmd})
@mindreframer
mindreframer / gist:9052527
Last active August 29, 2015 13:56
fixing not required libraries for chef
## to fix lib dependency, put this on top of your recipe file.
self.run_context.cookbook_collection[self.cookbook_name].library_filenames.each { |e| load(e) }
## in a cookbook, that needs my_cookbook
## in metadata.rb
depends 'my_cookbook'
@mindreframer
mindreframer / sinatra-nodejs.ru
Last active November 5, 2015 15:32
therubyracer freezes, if used in webservice
##### freezes after a couple of requests...
# OS: osx 10.9.1, libv8 (3.16.14.3 x86_64-darwin-13), therubyracer (0.12.1)
# gem install sinatra therubyracer json puma
# rackup sinatra-nodejs.ru
# wrk -t 2 -d 3 http://0.0.0.0:9292/am
# webserver (puma/webrick) does not make any difference
require 'sinatra/base'
require 'json'