Skip to content

Instantly share code, notes, and snippets.

bigger on the inside

C J Silverio ceejbot

bigger on the inside
Block or report user

Report or block ceejbot

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
ceejbot /
Last active Jul 17, 2019
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

ceejbot /
Last active Mar 14, 2019
A summary of things I miss about Github when I use Stash.

What I miss about github

See this Cloudup stream for visual references.

The short answer is that I miss everything. There is no comparing the two projects. Stash's feature set is a shadow of Github's.

What a project looks like on Github:

What a project looks like on Github

ceejbot /
Last active Nov 17, 2018
monitoring manifesto

monitoring: what I want

I've recently shifted from a straight engineering job to a job with a "dev/ops" title. What I have discovered in operations land depresses me. The shoemaker's children are going unshod. Operations software is terrible.

What's driving me craziest right now is my monitoring system.

what I have right now

What I have right now is Nagios.

ceejbot /
Last active Apr 3, 2018
ESModule use cases, a list in progress

ES module use cases

  • Alice is writing a new library, and she is excited to use the new ES6 syntax. However, she would like to use an older but still good package she found on npm, that exports its interface using CommonJS. She does so easily after reading the NodeJS documentation on how to do this.

  • Bob is updating a module for his work, and he needs to support existing CommonJS-using codebases as well as a new project that prefers to stick with ES6 for static analysis reasons. He publishes a package that exports both kinds of interfaces.

  • Carol is updating her popular code coverage reporting tool for the new world. She uses the ESM loader hooks to instrument test code as it is imported so she can get code coverage reporting on par with what she has for CommonJS.

  • David is writing a transpiler. He writes a custom hook that transpiles source as it's loaded from his language to JavaScript.

ceejbot / 2017-05-21T03_09_46_674Z-debug.log
Created May 21, 2017
enoent on man page symlink?????
View 2017-05-21T03_09_46_674Z-debug.log
2001 silly decomposeActions build combined-stream@1.0.5
2002 silly decomposeActions install combined-stream@1.0.5
2003 silly decomposeActions postinstall combined-stream@1.0.5
2004 silly decomposeActions finalize combined-stream@1.0.5
2005 silly decomposeActions refresh-package-json combined-stream@1.0.5
2006 silly decomposeActions fetch commander@2.9.0
2007 silly decomposeActions extract commander@2.9.0
2008 silly decomposeActions preinstall commander@2.9.0
2009 silly decomposeActions build commander@2.9.0
2010 silly decomposeActions install commander@2.9.0
ceejbot /
Last active Apr 7, 2017
How I set up a mastodon instance on AWS with ansible on ubuntu trusty
ceejbot /
Created Jul 6, 2016
Curling a file with a negative mtime
$ touch -t 196508231405.14 ./test.tgz"
$ stat ./test.tgz
File: ‘test.tgz’
Size: 6012 Blocks: 16 IO Block: 4096 regular file
Device: 900h/2304d Inode: 127402426 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ ubuntu) Gid: ( 1000/ ubuntu)
Access: 1965-08-23 14:05:14.000000000 +0000
Modify: 1965-08-23 14:05:14.000000000 +0000
Change: 2016-07-06 17:35:26.871223783 +0000
ceejbot /
Last active Dec 23, 2015
Things to do for nodebots day
  1. Party rentals from here: ASERentals. Arrange on Monday if possible.
  2. Bottled water in quantity.
  3. Canned soda in quantity.
  4. Large plastic buckets for drinks.
  5. DAY BEFORE: Mail to all attendees with directions from 101 & suggestions for what to bring.
  6. DAY OF: Ice in bags. Maybe beer.
  7. DAY OF: Bring all your toys.
  8. DAY OF: Taco order mid-morning.
View gist:5678796
team-cave-newt:master* λ node camera.js
ceejbot / secure-client.js
Last active Dec 10, 2015
A node https server/client pair that uses client certs to authorize clients.
View secure-client.js
#!/usr/bin/env node
var fs = require('fs'),
https = require('https');
// We pass our client key & cert to the http agent,
// which we then use to make the request.
var agentOptions = {
key: fs.readFileSync('client.key'),
cert: fs.readFileSync('client.crt'),
You can’t perform that action at this time.