Skip to content

Instantly share code, notes, and snippets.

View zosiakropka's full-sized avatar

Zosia Wiśniowolska zosiakropka

  • Kraków, Poland
View GitHub Profile
@chrisdavies
chrisdavies / open_struct_perf_test.rb
Created June 23, 2016 13:41
A perf test of Ruby's OpenStruct vs a few other options
# OpenStruct is slow. But if you need/want similar functionality,
# you can achieve it with really good perf results. See the impl
# of NotificationEvent below.
#
# Benchmark results from my Macbook (2.6 GHz Intel Core i5)
#
# Rehearsal -----------------------------------------------------
# Literal 1.060000 0.020000 1.080000 ( 1.080056)
# NotificationEvent 1.350000 0.000000 1.350000 ( 1.367066)
# OpenStruct 11.500000 0.110000 11.610000 ( 11.646464)
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"