Skip to content

Instantly share code, notes, and snippets.

View jfernandez's full-sized avatar
🦀
Rust and eBPF

Jose Fernandez jfernandez

🦀
Rust and eBPF
View GitHub Profile
def retry_times(exception = StandardError, times = 3, &block)
yield
rescue Exception => e
if times <= 1 || !e.is_a?(exception)
raise
else
sleep(0.5)
retry_times(exception, times - 1, &block)
end
end
//
// BarModel.h
// MusicalNotation
//
// Created by August Lilleaas on 8/4/10.
// Copyright (c) 2010 Shortcut AS. All rights reserved.
//
#import <Foundation/Foundation.h>
def bundle
sudo "#{$0} _#{VERSION}_ install_bundler 1.0.0.rc.3"
run "cd #{config.release_path} && bundle _1.0.0.rc.3_ install --deployment --path #{config.shared_path}/bundled_gems"
end
gemcutter => redis downloads spec
=================================
keys
----
downloads => global counter for all gem downloads
downloads:today => sorted set for downloads from today
downloads:rubygem:rails => counter for all rails downloads
downloads:version:rails-2.3.5 => counter for all rails 2.3.5 downloads