Skip to content

Instantly share code, notes, and snippets.

View mikedeboer's full-sized avatar

Mike de Boer mikedeboer

View GitHub Profile
diff --git a/browser/base/content/contentSearchUI.js b/browser/base/content/contentSearchUI.js
--- a/browser/base/content/contentSearchUI.js
+++ b/browser/base/content/contentSearchUI.js
@@ -46,17 +46,17 @@ this.ContentSearchUIController = (functi
searchPurpose,
isPrivateWindow,
idPrefix = ""
) {
this.input = inputElement;
this._idPrefix = idPrefix;
@mikedeboer
mikedeboer / pdfjs-scripting.patch
Created July 17, 2019 10:04
Mozilla-central patch that adds very basic scripting support to PDF.js, using Gecko sandboxing and eval.
# HG changeset patch
# User Mike de Boer <[email protected]>
# Date 1562077334 -7200
# Tue Jul 02 16:22:14 2019 +0200
# Node ID 4b826bf58084a766832c54658b7b63f2748a503e
# Parent 8fd4efa75b558406390c316a7e4d1fc288715866
WIP to add scripting support to PDF.js
diff --git a/browser/base/content/test/static/browser_all_files_referenced.js b/browser/base/content/test/static/browser_all_files_referenced.js
--- a/browser/base/content/test/static/browser_all_files_referenced.js
@mikedeboer
mikedeboer / __init__.py
Created May 22, 2019 10:38
builtins override
from __future__ import absolute_import
import sys
__future_module__ = True
if sys.version_info[0] < 3:
from __builtin__ import *
# Overwrite any old definitions with the equivalent future.builtins ones:
from future.builtins import *
else:
raise ImportError('This package should not be accessible on Python 3. '
mikedeboer:(hg)mozilla-central[267ddc3]/$ ./mach help
Traceback (most recent call last):
File "./mach", line 86, in <module>
main(sys.argv[1:])
File "./mach", line 78, in main
mach = get_mach()
File "./mach", line 68, in get_mach
mach = check_and_get_mach(dir_path)
File "./mach", line 42, in check_and_get_mach
return load_mach(dir_path, mach_path)
0:04.90 INFO Application command: /Users/mikedeboer/Projects/mozilla-central/obj-x86_64-apple-darwin18.5.0/dist/NightlyDebug.app/Contents/MacOS/firefox -marionette -foreground -profile /var/folders/ln/_bfy5x3d5xlcjg7x_3dgdgt00000gn/T/tmpRfbrfD.mozrunner
0:04.90 INFO runtests.py | Application pid: 70420
0:04.91 Started process `GECKO(70420)`
0:05.04 GECKO(70420) ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /var/folders/ln/_bfy5x3d5xlcjg7x_3dgdgt00000gn/T/tmpRfbrfD.mozrunner/runtests_leaks.log
0:06.49 GECKO(70420) 1557934471601 [email protected] WARN Loading extension '[email protected]': Reading manifest: Invalid extension permission: mozillaAddons
0:06.49 GECKO(70420) 1557934471602 [email protected] WARN Loading extension '[email protected]': Reading manifest: Invalid extension permission: resource://pdf.js/
0:06.49 GECKO(70420) 1557934471602 [email protected] WARN Loading extension 'screenshots@mozil
@mikedeboer
mikedeboer / backtrace.txt
Last active January 15, 2019 11:17
crash backtrace.
(lldb) run
Process 82840 launched: '/Users/mikedeboer/Projects/cedar/obj-x86_64-apple-darwin18.2.0/dist/Nightly.app/Contents/MacOS/firefox' (x86_64)
2019-01-15 12:16:01.209097+0100 firefox[82840:3899328] [default] Unable to load Info.plist exceptions (eGPUOverrides)
Can't find symbol 'GetGraphicsResetStatus'.
2019-01-15 11:16:02.719902+0000 plugin-container[82851:3899564] [default] LaunchServices: disconnect event (invalidation) received for service com.apple.lsd.modifydb
2019-01-15 11:16:02.720207+0000 plugin-container[82851:3899542] [default] XPC error encountered: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.lsd.modifydb was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.lsd.modifydb was invalidated.}
2019-01-15 11:16:02.724587+0000 plugin-container[82851:3899542] [default] Unable to load Info.plist exceptions (eGPUOverrides)
2019-01-15 11:16:02.734169+0000 plugin-container[82851:3899567] [User Defaults] Couldn't read values in C
@mikedeboer
mikedeboer / clang_diagnostics.crash
Last active January 3, 2019 13:31
Fennec compilation failure on OSX Mojave, but temp LLVM header fixes applied.
Process: clang++ [18182]
Path: /Users/USER/*/clang++
Identifier: clang++
Version: 6.0.2 (6.0)
Code Type: X86-64 (Native)
Parent Process: ??? [18181]
Responsible: clang++ [18182]
User ID: 501
Date/Time: 2019-01-03 14:22:00.973 +0100
@mikedeboer
mikedeboer / vcs-completion.bash
Created August 15, 2016 19:52
VCS Completion prompt
_bold=$(tput bold)
_normal=$(tput sgr0)
__prompt_command() {
local vcs base_dir sub_dir ref last_command
sub_dir() {
local sub_dir
sub_dir=$(stat -f "${PWD}")
sub_dir=${sub_dir#$1}
echo ${sub_dir#/}
@mikedeboer
mikedeboer / highlighterHTML.patch
Created June 11, 2016 14:11
Finder highlighter using HTML and mix-blend-mode
# HG changeset patch
# User Mike de Boer <[email protected]>
# Date 1465654180 -7200
# Sat Jun 11 16:09:40 2016 +0200
# Node ID 1c1bb8d010aa1c474b4c656397b465b83e7e17a5
# Parent ff9fd611d818116cfd47ee7d067c2642368cf3f9
[mq]: highlighterHTML
diff --git a/toolkit/modules/FinderHighlighter.jsm b/toolkit/modules/FinderHighlighter.jsm
--- a/toolkit/modules/FinderHighlighter.jsm
@mikedeboer
mikedeboer / cs
Last active August 29, 2015 14:01
Node.JS wrapped GREP search command builder... ack on steroids, if you will!
#!/usr/bin/env node
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
var Fs = require("fs");
var Path = require("path");
var Spawn = require("child_process").spawn;