Skip to content

Instantly share code, notes, and snippets.

Jarrett Cruger jcrugzz

Block or report user

Report or block jcrugzz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View version-published-not-found.sh
npm http request PUT https://registry.npmjs.org/carpenterd-worker
npm http 200 https://registry.npmjs.org/carpenterd-worker
+ carpenterd-worker@1.5.0
~/g/g/carpenterd-worker ❯❯❯ npm view carpenterd-worker
npm http request GET https://registry.npmjs.org/carpenterd-worker
npm http 200 https://registry.npmjs.org/carpenterd-worker
carpenterd-worker@1.4.0 | MIT | deps: 19 | versions: 10
Receives and runs builds received from nsqd
https://github.com/godaddy/carpenterd-worker#readme
View simple-http.js
const http = require('http');
const fs = require('fs');
const concat = require('concat-stream');
var server = http.createServer(function (req, res) {
console.log(`Received request ${req.url}`);
if (req.method === 'POST') {
return req.pipe(concat(function (body) {
View read-things.js
var fs = require('fs');
var whateverCsv = fs.readFileSync('whatever.csv');
var otherCsv = fs.readFileSync('other.csv');
var lines = content.split('\n');
var columnNamesArray = lines[0].split(',');
var firstColumnName = columnNamesArray[0];
View gist:e37c619d504961c85b2b
C:\Git\node-wsb-api>npm i level-hyper@latest -g
-
> leveldown-hyper@1.0.0 install C:\Program Files\nodejs\node_modules\level-hyper\node_modules\leveldown-hyper
> node-gyp rebuild
C:\Program Files\nodejs\node_modules\level-hyper\node_modules\leveldown-hyper>node "C:\Users\rbenedum\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp: Undefined variable os_include in C:\Program Files\nodejs\node_modules\level-hyper\node_modules\leveldown-hyper\deps\leveldb\leveldb.gyp while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
View random.js
var http = require('http');
var url = require('url');
var fs = require('fs');
var parsed = url.parse('http://change-fonts.s3.amazonaws.com/change-symbols-webfont.ttf');
var req = http.request(parsed);
req.end();
req.on('error', console.error.bind(console));
View gist:01858b1a08ed91996d82
Error: Decoded message is not valid
at Array.decode [as 0] (eval at <anonymous> (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/node_modules/generate-function/index.js:55:21), <anonymous>:16:37)
at eval [as _decode] (eval at <anonymous> (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/node_modules/generate-function/index.js:55:21), <anonymous>:6:27)
at Decoder._pushMessage (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/decoder.js:127:10)
at Decoder._parse (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/decoder.js:175:21)
at Decoder._write (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/decoder.js:190:10)
at doWrite (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/Users/jcruger/github/mafintosh/multileveldown/node_modules/pbs/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at Writable.writ
View error.txt
/Users/jcruger/github/jcrugzz/sublevel-repro/node_modules/level-party-hyper/node_modules/multileveldown/node_modules/pbs/node_modules/protocol-buffers/encodings.js:19
return Buffer.isBuffer(val) ? val.length : Buffer.byteLength(val)
^
TypeError: Argument must be a string
at exports.bytes.bufferLength (/Users/jcruger/github/jcrugzz/sublevel-repro/node_modules/level-party-hyper/node_modules/multileveldown/node_modules/pbs/node_modules/protocol-buffers/encodings.js:19:55)
at Object.exports.bytes.encodingLength (/Users/jcruger/github/jcrugzz/sublevel-repro/node_modules/level-party-hyper/node_modules/multileveldown/node_modules/pbs/node_modules/protocol-buffers/encodings.js:23:15)
at Object.encodingLength (eval at <anonymous> (/Users/jcruger/github/jcrugzz/sublevel-repro/node_modules/level-party-hyper/node_modules/multileveldown/node_modules/pbs/node_modules/generate-function/index.js:55:21), <anonymous>:8:20)
at Object.encodingLength (eval
View artists.md

List of Artists that I like

  • OCNO
  • Desert Dwellers
  • Sean Johnson and the Wild Lotus Band
  • Bhagavan Das
  • MC Yogi
  • Shaman's Dream
  • John De Kadt
  • Ecodek
View keybase.md

Keybase proof

I hereby claim:

  • I am jcrugzz on github.
  • I am jcrugzz (https://keybase.io/jcrugzz) on keybase.
  • I have a public key whose fingerprint is 2318 5A3E 419E 363A 4EF4 4C35 78D8 3158 B780 A73A

To claim this, I am signing this object:

View output.txt
DEBUG: Connection: Trying 72.2.114.207 on port 22 ...
DEBUG: Parser: STATE_INIT
DEBUG: Parser: STATE_GREETING
DEBUG: Parser: STATE_HEADER
DEBUG: Connection: Server ident: 'SSH-2.0-Sun_SSH_1.5'
DEBUG: Parser: STATE_PACKETBEFORE (expecting 8)
DEBUG: Connection: Sending KEXINIT
DEBUG: Parser: STATE_PACKET
DEBUG: Parser: pktLen:2380,padLen:10,remainLen:2376
DEBUG: Parser: STATE_PACKETDATA
You can’t perform that action at this time.