Skip to content

Instantly share code, notes, and snippets.

View sailor's full-sized avatar
:octocat:

Salim Semaoune sailor

:octocat:
View GitHub Profile
@sailor
sailor / server.rb
Created January 26, 2020 18:12
PoC of a background job system in ruby that work asynchronously (using event loops)
require 'bundler/inline'
require 'json'
gemfile do
source 'https://rubygems.org'
gem 'async-redis'
end
endpoint = Async::Redis.local_endpoint
redis = Async::Redis::Client.new(endpoint)
@sailor
sailor / Vagrantfile
Created March 25, 2015 13:09
Vagrantfile for Rails development environment
VAGRANTFILE_API_VERSION = '2'
$install = <<SCRIPT
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig
chmod +x /usr/local/bin/fig
SCRIPT
$build = <<SCRIPT
cd /vagrant
fig build