Skip to content

Instantly share code, notes, and snippets.

View oskarizu's full-sized avatar
🏠
Working from home

Oscar García oskarizu

🏠
Working from home
View GitHub Profile
@oskarizu
oskarizu / changelog-badge.svg
Created September 28, 2017 13:34
changelog-badge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.3.1/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.3.1" "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2#4a7c5f52f205203ea0328ca8e1963a7a88cf1f7f0e246f857d595b209eac0a4d" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.2.4/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1q" "https://www.openssl.org/source/openssl-1.0.1q.tar.gz#b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.2.4" "https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.bz2#31203696adbfdda6f2874a2de31f7c5a1f3bcb6628f4d1a241de21b158cd5c76" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
build_package_reconfigure() {
test -f configure || autoconf
}
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
patch -p1 < rvm-patchsets/patches/ruby/2.2.2/railsexpress/01-zero-broken-tests.patch
patch -p1 < rvm-patchsets/patches/ruby/2.2.2/railsexpress/02-improve-gc-stats.patch
patch -p1 < rvm-patchsets/patches/ruby/2.2.2/railsexpress/03-display-more-detailed-stack-trace.patch
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.1.4/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1i" "https://www.openssl.org/source/openssl-1.0.1i.tar.gz#74eed314fa2c93006df8d26cd9fc630a101abd76" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.1.4" "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz#bf9952cdeb3a0c6a5a27745c9b4c0e5e264e92b669b2b08efb363f5156549204" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
build_package_reconfigure() {
test -f configure || autoconf
}
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/01-current-2.1.1-fixes.patch
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/02-zero-broken-tests.patch
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/03-improve-gc-stats.patch
#!/usr/bin/env ruby
# based on the clear_hipchat.rb from https://gist.github.com/jhbabon/5894578
# usage = GMAIL_USER='user@company' GMAIL_PASS='secret' ./sweep_the_inbox.rb
require 'net/imap'
username = ENV['GMAIL_USER']
@oskarizu
oskarizu / Gemfile
Created October 29, 2013 10:13 — forked from jhbabon/Gemfile
# A sample Gemfile
source "https://rubygems.org"
gem 'mechanize'
gem 'chronic'
@oskarizu
oskarizu / topic_branch.sh
Created May 3, 2013 14:52
Simple script to create topic branches
#!/bin/sh
# Create automatic topic branches with your username or
# a specified name in .script_vars which has to be placed in
# $HOME directory
#
# .script_vars format
#
# usr=whatever
# from=whatever
@oskarizu
oskarizu / new_profile.rb
Created January 16, 2013 11:12
Formatter for RSpec 2 based on RspecEnhancedFormatter from https://github.com/grosser/rspec_enhanced_profile
# RSpec 2
require 'rspec/core/formatters/progress_formatter'
class NewProfile < RSpec::Core::Formatters::ProgressFormatter
SHOW_TOP = (ENV['PROFILE_SHOW_TOP'] || 20).to_i
def initialize(*args)
super
@example_times = []
end