This file contains hidden or 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
| mv ssl.key bak.key | |
| openssl rsa -in bak.key -out ssl.key |
This file contains hidden or 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
| RUBYOPT='-rpsych' bundle install |
This file contains hidden or 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
| require 'rubygems' | |
| require 'yaml' | |
| YAML::ENGINE.yamler= 'syck' | |
| # Set up gems listed in the Gemfile. | |
| ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |
| require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) |
This file contains hidden or 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
| before_filter :set_p3p | |
| def set_p3p | |
| response.headers["P3P"]='CP="CAO PSA OUR"' | |
| end |
This file contains hidden or 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
| % gem install capybara-webkit -v '0.10.0' | |
| Building native extensions. This could take a while... | |
| ERROR: Error installing capybara-webkit: | |
| ERROR: Failed to build gem native extension. | |
| /usr/local/rvm/rubies/ruby-1.9.3-preview1/bin/ruby extconf.rb |
This file contains hidden or 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
| gem 'thin', '1.3.1' | |
| gem 'eventmachine', '1.0.0.rc.1' |
This file contains hidden or 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
| var csv = require('csv'), | |
| fs = require('fs'); | |
| csv() | |
| .from.stream(fs.createReadStream(__dirname + "/scores.csv")) | |
| .to.path(__dirname + "/scores_with_position.csv") | |
| .transform(function (data, index) { | |
| data.push(index + 1); | |
| return data; | |
| }); |
This file contains hidden or 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
| var CANVAS_WIDTH = 200, | |
| CANVAS_HEIGHT = 100, | |
| canvas = document.getElementById("microgame"), | |
| ctx = canvas.getContext("2d"), | |
| player = { | |
| x: 30, | |
| y: CANVAS_HEIGHT - 20, | |
| w: 20, | |
| h: 20, | |
| score: 0, |
This file contains hidden or 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
| Itnig attends NoSQL Matters 2014 in Barcelona |
This file contains hidden or 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
| docker run --restart=always --name redis -p 6379:6379 -v /var/lib/redis:/data -d redis | |
| docker run --restart=always --name mysql -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql | |
| docker run --restart=always --name mongo -p 27017:27017 -v ~/mongodb:/data/db -d mongo |
OlderNewer