Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Juszczak mjuszczak

View GitHub Profile
View gist:67eafa0ffc873a2f307d92fe2aca76f3
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
View montyhall.rb
require 'bigdecimal'
switch = true
wins = 0
1000.times do |k|
doors = [false, false, false]
doors[rand 3] = true
View gist:211e086a80cf5102b127
### Keybase proof
I hereby claim:
* I am mjuszczak on github.
* I am mjuszczak (https://keybase.io/mjuszczak) on keybase.
* I have a public key whose fingerprint is B8C0 CB75 5045 A210 C8CC 73A1 14F3 6AF6 A14D F20C
To claim this, I am signing this object:
@mjuszczak
mjuszczak / gist:7143459
Created October 24, 2013 19:27
PostgreSQL Differences
View gist:7143459
[root@blah tmp]# diff postgresql.conf postgresql.conf.pgtune
64c64
< max_connections = 100 # (change requires restart)
---
> # max_connections = 100 # (change requires restart)
107c107
< shared_buffers = 32MB # min 128kB
---
> # shared_buffers = 32MB # min 128kB
502a503,512