Skip to content

Instantly share code, notes, and snippets.

View chussenot's full-sized avatar

Clément Hussenot chussenot

View GitHub Profile

The aim of this post is to guide the reader through the process of installing ruby 2.0.0 into rbenv with dtrace probes enabled. As rbenv uses ruby-build, which currently downloads and compiles a copy of openssl rather than using the one maintained and updated in homebrew i prefer to use the homebrew one.

Note that you MUST install xcode before installing anything, then install homebrew, and lastly install openssl, via homebrew as follows.

brew install openssl

Next to overcome the fact that OSX doesn't have an openssl ca certificate bundle, use the following brew to create and maintain one using the CA certs stored in your keychain.

# vim: se ft=ruby :
# ${HOME}/.pryrc
# https://github.com/carlhuda/bundler/issues/183#issuecomment-1149953
if defined?(::Bundler) || File.exists?('Gemfile')
global_gemset = ENV['GEM_PATH'].split(':').grep(%r{ruby.*@global|gemsets/global}).first
if global_gemset
all_global_gem_paths = Dir.glob("#{global_gemset}/gems/*")
all_global_gem_paths.each do |p|
# encoding: utf-8
# see http://edgeguides.rubyonrails.org/rails_application_templates.html
# USAGE
# rake rails:template LOCATION=/path/to/template.rb
# rails new testing_template -m template.rb
# Git
git :init
$ curl 'https://www.linkedin.com/ta/titleV2?query=editor' -H 'pragma: no-cache' -H 'accept-encoding: gzip, deflate, sdch' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36' -H 'accept: */*' -H 'cache-control: no-cache' -H 'cookie: __utma=226841088.932423278.1426009571.1441109315.1455268828.7; __utmv=226841088.user; __utmz=226841088.1455268828.7.6.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.932423278.1426009571; _lipt=0_2D0HgoiQXLp395TkCpLQ7jRkeK2bNOXEPRTmrAUgK4_7wD_QxuYX_Jd-MIuTR2wAUgo2rtVuUloq03Ls10p3MGUEpnSgWJ-zhHd-iJAonlE3IquOSaa_szQwmPKw0oxqjL1EDeGq9avMcrbMpMpN1VjpnStE2ZRCwyI73eytlMEmtYyW_3Z9SKwAZhvLkz8C8LLWdVknsOKBNzOgWO7OwiyMGM-uwAqIKbNCpJs9M6n6vlZwg3FTRZ8wjkbRlbg2aFyBGo5zgTpb_TrnIKL8a0vYhSl5eNwlb3yjgM2-m9Y2PVTneq2GaqXxJ-ibTkkI8t63xOyPigFw4C9W6BTh0y; bcookie="v=2&2b3293b8-d3cf-4de5-80a8
#
# Symmetric Encryption for Ruby
#
---
# For the development and test environments the test symmetric encryption keys
# can be placed directly in the source code.
# And therefore no RSA private key is required
development: &development_defaults
key: 1234567890ABCDEF1234567890ABCDEF
iv: 1234567890ABCDEF
[core]
excludesfile = /Users/chussenot/.gitignore_global
[diff]
color = true
[alias]
; shortcuts
st = status
a = add
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
afee5c053f12c642151ebc5db5a4e7029310afd9
shared_preload_libraries = 'pg_stat_statements, postgis'
# shared_preload_libraries = 'postgis'
# Increase the max size of the query strings Postgres records
track_activity_query_size = 2048
# Track statements generated by stored procedures as well
pg_stat_statements.track = all