Skip to content

Instantly share code, notes, and snippets.

View blotto's full-sized avatar

Nick Newell blotto

View GitHub Profile
@gautamrege
gautamrege / notify.js
Created January 28, 2012 14:43
Notification node server
var express = require('express')
, app = express.createServer()
, io = require('socket.io').listen(app);
app.use(express.bodyParser());
app.listen(13002);
var connections = {}
@ugisozols
ugisozols / gist:6778058
Last active April 4, 2019 17:18
Refinery CMS + Dragonfly + Amazon S3 + Amazon Cloudfront
# config/environments/production.rb:
config.action_controller.asset_host = "http://cdn%d.example.com"
# config/initializers/refinery/images.rb:
config.dragonfly_url_format = "/images/:job/:basename.:ext"
if Rails.env.production?
config.dragonfly_url_host = "http://cdn4.example.com"
end
# config/initializers/refinery/resources.rb:
var http = require('http');
var https = require('https');
// Config start
var ogApiKey = '<ogApiKey>';
var jiraUsername = '<jiraUsername>';
var jiraPassword = '<jiraPassword>';
// If you're using your own installation of JIRA,