Skip to content

Instantly share code, notes, and snippets.

View jeffgca's full-sized avatar

Jeff Griffiths jeffgca

View GitHub Profile
@jeffgca
jeffgca / -
Last active December 31, 2015 19:39 — forked from anonymous/-
#!/bin/bash
NAME=`cat ./package.json| pkg_tool.js name`.xpi
URL="http://127.0.0.1:8888/"
# echo $URL
cfx xpi && wget --post-file=$NAME $URL
@jeffgca
jeffgca / install-addon
Last active February 7, 2020 11:13 — forked from anonymous/-
A node script that abuses child_process to run cfx and post the resulting xpi to Firefox. Requires: *nix, a working installation of the Add-on SDK ( with cfx on your PATH ) and a recent version of Firefox with the 'Extension Auto-installer' extension installed.
#!/usr/bin/env node
var util = require('util'),
fs = require('fs'),
path = require('path'),
http = require('http'),
_ = require('lodash'),
url = require('url');
var DEBUG = false,
@jeffgca
jeffgca / Rooiboos.md
Last active August 29, 2015 13:59 — forked from anonymous/Rooiboos.md
Rooibos, or how I Infused some harmony into my webdev workflow

Excerpt

When I talk to people about tools for web development they say things like: "we have some old backbone stuff, did a few projects in Angular and Jerry wants to re-write everything in something called Ohm or Elm or Bazinga.js. We hate SASS, but we use it because we hate CSS more. We looked at gulp but we have too much magic in our Grunt files to convert! And I hate all debuggers because the framework we use has it's own ideas of what objects are. The tools are no help!"

What if you could create your own tools, and it was as simple as writing a web app using the tools and frameworks you're already using?

Description

This talk is a dive-in session on how I wrote my own Firefox developer tools extension called ‘Rooibos’ to run my unit tests automatically for me. The use case for Rooibos is simple: I’m looking at the site I’m working on and I want to run my tests and see what failed. Without switching to another app or anything. Turns out, it’s pretty easy these days to extend browsers to help w