Skip to content

Instantly share code, notes, and snippets.

View rosskukulinski's full-sized avatar

Ross Kukulinski rosskukulinski

View GitHub Profile
@rosskukulinski
rosskukulinski / gist:9358942
Last active August 29, 2015 13:57
The Hazards of Proclaiming 'Fanatical' Support
http://kukulinski.com/the-hazards-of-proclaiming-fanatical-support/
Please feel free to leave comments here.
var fs = require('fs');
var JSONStream = require('JSONStream')
var file = fs.createReadStream('yakkity.log', {encoding: 'utf8'});
file.pipe(JSONStream.parse())
.on('data', function(data) {
console.log(data);
});
// Error handler, currently does nothing. TODO: emit non "error"
Worker.prototype.error = function(err, job)
{
console.error(err.stack || err.message);
return this;
};
var readCurrencies = function(callback) {
var filepath = __dirname + '/../models/currencies.txt';
var handleFileData = function handleFileData(err, data) {
if (err) {
return callback(err);
}
callback(null, convertToJson(data));
};
@rosskukulinski
rosskukulinski / gist:10432247
Created April 10, 2014 23:39
npm error installing bunyan
[~]$ cat ~/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/rossk/.nvm/v0.10.25/bin/node',
1 verbose cli '/Users/rossk/.nvm/v0.10.25/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'bunyan' ]
2 info using [email protected]
3 info using [email protected]
4 verbose cache add [ 'bunyan', null ]
"Error with inline authentication",
{
"message": "Unable to identify target endpoint for Service: cloudBigData",
"stack": "Error: Unable to identify target endpoint for Service: cloudBigData\n at Object.exports.validateRegionForService (/usr/lib/nodejs/vocality/node_modules/node-cloud/node_modules/pkgcloud/lib/pkgcloud/openstack/identity/service.js:153:26)\n at /usr/lib/nodejs/vocality/node_modules/node-cloud/node_modules/pkgcloud/lib/pkgcloud/openstack/identity/serviceCatalog.js:72:13\n at iterate (/usr/lib/nodejs/vocality/node_modules/node-cloud/node_modules/pkgcloud/node_modules/async/lib/async.js:108:13)\n at /usr/lib/nodejs/vocality/node_modules/node-cloud/node_modules/pkgcloud/node_modules/async/lib/async.js:119:25\n at Object.exports.validateRegionForService (/usr/lib/nodejs/vocality/node_modules/node-cloud/node_modules/pkgcloud/lib/pkgcloud/openstack/identity/service.js:159:17)\n at /usr/lib/nodejs/vocality/node_modules/node-cloud/node_modules/pkgcloud/lib/pkgcl
[lib/instance.js] Error: error=Error: Unable to identify endpoint url
at Service.getEndpointUrl (/Users/rossk/dev/asti/vocality/node_modules/pkgcloud/lib/pkgcloud/openstack/context/service.js:106:11)
at /Users/rossk/dev/asti/vocality/node_modules/pkgcloud/lib/pkgcloud/openstack/context/serviceCatalog.js:47:25
at Function._.each._.forEach (/Users/rossk/dev/asti/vocality/node_modules/pkgcloud/node_modules/underscore/underscore.js:86:24)
at ServiceCatalog.getServiceEndpointUrl (/Users/rossk/dev/asti/vocality/node_modules/pkgcloud/lib/pkgcloud/openstack/context/serviceCatalog.js:42:5)
at Identity.getServiceEndpointUrl (/Users/rossk/dev/asti/vocality/node_modules/pkgcloud/lib/pkgcloud/openstack/context/identity.js:247:32)
at /Users/rossk/dev/asti/vocality/node_modules/pkgcloud/lib/pkgcloud/openstack/client.js:141:41
at Request._callback (/Users/rossk/dev/asti/vocality/node_modules/pkgcloud/lib/pkgcloud/openstack/context/identity.js:137:9)
at Request.self.callback (/Users/rossk/dev/a
<html>
<head>
<script src="https://speakit.io/static/js/SpeakItClient.js"></script>
<script>
// JavaScript
var SpeakIt = require('SpeakItClient');
var sClient = new SpeakIt();
sClient.on('ready', function() {
sClient.connect();
#chat-box.ubuntu.hidden-xs
.closed
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-chevron-up').html_safe, 'chat.show()'
.m-l-small
= link_to_function 'Chat with us', 'chat.show()'
.opened{style: 'display: none'}
.header
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-plus-sign').html_safe, 'chat.maximize()', class: 'maximize', style: 'display: none'
@rosskukulinski
rosskukulinski / gist:616ee4885c17be93b0ce
Created September 30, 2014 23:41
coreos gpg signature fail
bash-4.2# coreos-install -d /dev/mapper/rack--top-root -C stable -c cloud1.yml
Downloading and verifying coreos_production_image.bin.bz2...
--2014-09-30 23:39:50-- http://stable.release.core-os.net/amd64-usr/410.1.0/coreos_production_image.bin.bz2
Resolving stable.release.core-os.net... 74.125.20.128, 2001:4860:400b:c01::80
Connecting to stable.release.core-os.net|74.125.20.128|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 188608448 (180M) [application/octet-stream]
Saving to: '/tmp/coreos-install.ab8Q0mg0lk/coreos_production_image.bin.bz2'
100%[================================================================================================================================================>] 188,608,448 2.92MB/s in 61s