Skip to content

Instantly share code, notes, and snippets.

View bgrins's full-sized avatar

Brian Grinstead bgrins

View GitHub Profile
https://github.com/bgrins/devtools-patches/blob/master/quick-restart
./mach run --profile $(mktemp -d)
XULCOUNT SUMMARY:
4356 elements traversed
There are 4164 xul elements
There are 2846 elements with xbl bindings
There are 47 html elements
There are 0 unknown elements
3 duplicate elements with xbl bindings detected
XUL: 98 unique xul elements (4164 total)
Sorted list of xul elements:
608K third_party/rust/chrono
376K third_party/rust/itertools
340K third_party/rust/rusqlite
340K third_party/rust/dbghelp-sys
300K third_party/rust/combine
196K third_party/rust/num-bigint
176K third_party/rust/peg
140K third_party/rust/backtrace
136K third_party/rust/gcc
116K third_party/rust/error-chain
third_party/rust/aho-corasick-0.5.3/.cargo-checksum.json
third_party/rust/aho-corasick-0.5.3/.cargo-ok
third_party/rust/aho-corasick-0.5.3/.gitignore
third_party/rust/aho-corasick-0.5.3/.travis.yml
third_party/rust/aho-corasick-0.5.3/COPYING
third_party/rust/aho-corasick-0.5.3/Cargo.toml
third_party/rust/aho-corasick-0.5.3/LICENSE-MIT
third_party/rust/aho-corasick-0.5.3/Makefile
third_party/rust/aho-corasick-0.5.3/README.md
third_party/rust/aho-corasick-0.5.3/UNLICENSE
https://github.com/Datomic/mbrainz-sample#getting-started
bin/datomic restore-db file:///Documents/mbrainz-1968-1973 datomic:free://localhost:4334/mbrainz-1968-1973
cd testing/talos/talos/tests/devtools/addon/
# Make changes
# <MODIFY install.rdf version #>
zip -r devtools-signed.xpi .
jpm sign --api-key <APIKEY> --api-secret <APISECRET> --xpi devtools-signed.xpi
mv damp_devtools_at_maximum_performance-0.0.5-fx.xpi devtools-signed.xpi
@bgrins
bgrins / hgrc
Created November 2, 2016 21:23
Pulling from central but pushing to inbound
[paths]
default = https://hg.mozilla.org/mozilla-central
default-push = /push/to/inbound
inbound = ssh://hg.mozilla.org/integration/mozilla-inbound
try = ssh://hg.mozilla.org/try
central = ssh://hg.mozilla.org/mozilla-central/
review = ssh://reviewboard-hg.mozilla.org/gecko
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
@bgrins
bgrins / connect-to-debugger.js
Created August 8, 2016 22:14
Browser console script to connect the debugger to the current page (non-e10s)
Cu.import("resource://gre/modules/jsdebugger.jsm");
addDebuggerToGlobal(this);
var dbg = new Debugger();
var DOwindow = dbg.addDebuggee(content.window);