This is a small page with list of things and snippets I never remember to the latter and always look for. It's hard to put them somewhere...
XPCOM_DEBUG_BREAK= warn, stack, suspend (not working on win), abort, trap or break, stack-and-abort
MINIDUMP_SAVE_PATH - local test crash dumps are saved here
List all extensions contained in a tree (MinGW): ls -1R | grep -e "\.[a-z]\+$" | sed "s/\([^\\.]\+\\.\)\+\([a-zA-Z]\+\)\$/\2/g" | sort -u
general.useragent.override
XPCOM_MEM_BLOAT_LOG=leaks.log
WUAUCLT /detectnow
while (!IsDebuggerPresent()) { ::Sleep(1000); printf("."); }
mach mochitest-plain --keep-open --no-autorun
#define TEXTW(x) L##x #define MULTILINESTRING(X) TEXTW(#X)
git fetch && git rebase origin git push -u origin (working branch name) git checkout (working branch name); git rebase master git checkout master; git merge --squash (working branch name); git commit -m (message) git branch -D (working branch name)
NS_TRACE_MALLOC_DISABLE_STACKS=1
while TEST_PATH=content/events/test/test_bug409604.html pymake -C _obj-browser-opt/ mochitest-plain | grep 'exit 0'; do true; done
while ! (/builds/slave/talos-slave/test/build/venv/bin/python -u /builds/slave/talos-slave/test/build/tests/mochitest/runtests.py --appname=/builds/slave/talos-slave/test/build/application/FirefoxNightly.app/Contents/MacOS/firefox --utility-path=tests/bin --extra-profile-file=tests/bin/plugins --symbols-path=http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/gum-macosx64/1389228167/firefox-29.0a1.en-US.mac.crashreporter-symbols.zip --certificate-path=tests/certs --autorun --test-path=/tests/content/html/document/test/test_bug172261.html --close-when-done --console-level=INFO --total-chunks=5 --this-chunk=1 --chunk-by-dir=4 | grep "Test timed out" ); do true; done
gdb source pan: Ctrl-X Ctrl-A, use Ctrl-P, Ctrl-N, Ctrl-F, and Ctrl-B to navigate in the command line history
comment out | driver.install_tests(remove=False) | from mach_commands.py to disable the check on every invocation
select replace(hex(MetaData), '00', '0D0A') from moz_cache;
HKEY_CURRENT_USER\Software\Microsoft\WDExpress\12.0\Find
devtools.hud.loglimit.console;10000
MOZ_DISABLE_NONLOCAL_CONNECTIONS=1
Selfsigned CA + a device cert
openssl genrsa -out ca.key 2048 openssl req -x509 -new -nodes -key ca.key -sha256 -days 36500 -out ca.pem openssl genrsa -out device.key 2048 openssl req -new -key device.key -out device.csr openssl x509 -req -in device.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out device.pem -days 36500 -sha256
- user_pref("xpinstall.signatures.required", false)
about:debugging
, Load Temporary Add-on hg log -r 'removes("path/to/file.ext")'
./mach try -b o -p linux64,macosx64,win32,win64 -u none -t all --rebuild-talos 6
ac_add_options --with-windows-version=603;
(new Date()).toISOString().replace(/[TZ]/g, " ").trim() = "2017-01-01 12:34:56.123000 UTC"
sudo apt-get install secure-delete sudo sfill -f -z -l -l /
./mach mercurial-setup -u
netsh int tcp set global fastopen=disabled
git merge --squash (working branch name) git commit
netsh http add iplisten ipaddress=192.168.1.NN netsh http add iplisten ipaddress=:: netsh http delete iplisten ipaddress=:: netsh http show iplisten
Services.prefs.setIntPref("logging.nsSocketTransport", 5); Services.prefs.setIntPref("logging.config.add_timestamp", true);
hg fold -m 'Bug ...' -r bug######:: --exact
- ./mach python-test testing/xpcshell/selftest.py
SSLKEYLOGFILE
hg log --rev "ancestors(.)" -Gl10
sudo npm cache clean -f
./mach talos-test --suite perf-reftest-singletons
hg debugapplystreamclonebundle *.packed1.hg
watchman shutdown-server
ubuntu1804 config --default-user ...
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- SOCKS proxy: ssh -N -D 0.0.0.0:1080 SSH-listening-IP
Mozilla documentation reference:
Application cache implementation overview
DOM Storage implementation overview
~