Skip to content

Instantly share code, notes, and snippets.

@conf
conf / monkey_patches.rb
Created October 31, 2014 12:32
Monkey patch ActiveSupport::TimeZone to fix TZInfo::AmbiguousTime errors
View monkey_patches.rb
# put this file in config/initializers/monkey_patches.rb
require 'monkey_patches/active_support/time_zone'
@danriti
danriti / hipchat-v2.sh
Last active July 19, 2021 10:49
HipChat API v2 - Send a message to a room using cURL
View hipchat-v2.sh
#!/bin/bash
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \