Skip to content

Instantly share code, notes, and snippets.

View livestreamer's full-sized avatar

Vasanth livestreamer

View GitHub Profile
var assert = require('assert')
var util = require('util')
var testUtils = require('./utils')
var vows = require('vows')
var should = require('should')
var APIeasy = require('api-easy')
var _ = require('underscore')
var Logger = require('../lib/logger')
var settings = require('../lib/global').settings
var global = require('../lib/global')
play_url: {
url: 'http:/api/broadcast/id.smil',
passwordProtected: true
}
@livestreamer
livestreamer / gist:3523138
Created August 30, 2012 06:10 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
:super = ctrl on PC or cmd on Mac

Find

find :super+f
find in files :super+shift+f
replace :super+alt+f
find_next :super+g
find_prev :super+shift+g
find the next occurrence of the word under the caret (and won’t show the find panel) :super+alt+g

@livestreamer
livestreamer / httpclient_timeouts.rb
Created November 30, 2011 09:36
HTTPClient Default Timeouts
require 'rubygems'
require 'httpclient'
client = HTTPClient.new
puts "client.connect_timeout = #{client.connect_timeout}" # => client.connect_timeout = 60
puts "client.send_timeout = #{client.send_timeout}" # => client.send_timeout = 120
puts "client.receive_timeout = #{client.receive_timeout}" # => client.receive_timeout = 60
puts "client.keep_alive_timeout = #{client.keep_alive_timeout}" # => client.keep_alive_timeout = 15