Skip to content

Instantly share code, notes, and snippets.

View danieljimenez's full-sized avatar

Daniel danieljimenez

  • Texas
  • 09:39 (UTC -05:00)
View GitHub Profile
anonymous
anonymous / config.json
Created May 29, 2017 18:11
{
"bridge": {
"name": "HomekitBridge",
"username": "CC:FF:3D:E3:CE:01",
"port": 51826,
"pin": "000-55-321"
},
"description": "DJ's house",
"platforms": [
{
@jwhiting
jwhiting / warmup.rb
Created May 14, 2018 22:00
Warming up EBS volumes on RDS replicas/snapshots (ruby script)
#!/usr/bin/env ruby
require 'pg'
=begin
when creating a postgres db replica in RDS, or restoring from a snapshot, the
underlying EBS volume of the new instance must be initialized by reading every
block, otherwise the blocks will be lazy-initialized by production queries
which will be extremely latent. (i've seen normally 50ms queries take 30s in