Skip to content

Instantly share code, notes, and snippets.

View Irostovsky's full-sized avatar

Ivan Rostovsky Irostovsky

View GitHub Profile
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
How To Install and Configure Redis on Ubuntu 16.04
PostedMay 11, 2016 51.6k views NOSQL REDIS UBUNTU UBUNTU 16.04
Introduction
Redis is an in-memory key-value store known for its flexibility, performance, and wide language support. In this guide, we will demonstrate how to install and configure Redis on an Ubuntu 16.04 server.
Prerequisites
To complete this guide, you will need access to an Ubuntu 16.04 server. You will need a non-root user with sudo privileges to perform the administrative functions required for this process. You can learn how to set up an account with these privileges by following our Ubuntu 16.04 initial server setup guide.
def flattify(array)
array.each_with_object([]) do |element, flattened|
flattened.push *(element.is_a?(Array) ? flattify(element) : element)
end
end
class Developer
def initialize
@chain = []
end
def are
@chain << "I"
self
end
Dear Candidate
Thank you for applying for the Ruby on Rails Developer position at Product Madness. In order to take you through to the next stage interview we would like you to complete a short skill text.
With reference to the below red text please add your code instead of the '# Put your code here’ line. You need to implement developer class so DataBase#find_developer method does not fail. Try to add as few lines of code as possible.
class Developer
# Put your code here
end
@Irostovsky
Irostovsky / gist:30508f8e1d189034535a
Last active August 29, 2015 14:10
Sublime 3 + PhantomJS path not found
After upgrading OSX, the cucumber features down with *phantomJS not found* error.
In terminal was all ok.
Soltion:
Just install https://github.com/int3h/SublimeFixMacPath plugin for ST3.
@Irostovsky
Irostovsky / Problem
Created October 7, 2011 08:08 — forked from clemens/Problem
When the constraints block is active, I get RoutingError: No route matches "/" when going to localhost:3000. If I comment the block out, it works just fine. But I need both:
http://example.com should render PagesController#show with params[:permalink] being 'index'
http://clemensk.example.com should render ProfilesController#show
Hints anyone?
Thanks!