KB

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);
  • 0x804B0008 = "STATUS_READING"
    0x804B0009 = "STATUS_WRITING"
    0x804b0003 = "STATUS_RESOLVING"
    0x804b000b = "STATUS_RESOLVED"
    0x804b0007 = "STATUS_CONNECTING_TO"
    0x804b0004 = "STATUS_CONNECTED_TO"
    0x804B000C = "STATUS_TLS_HANDSHAKE_STARTING"
    0x804B000D = "STATUS_TLS_HANDSHAKE_ENDED"
    0x804b0005 = "STATUS_SENDING_TO"
    0x804b000a = "STATUS_WAITING_FOR"
    0x804b0006 = "STATUS_RECEIVING_FROM"
  • hg log -r 'removes("path/to/file.ext")'
  • consoleservice.enabled = false to disable DebugOutputString by web console
  • ./mach try -b o -p linux64,macosx64,win32,win64 -u none -t all --rebuild-talos 6
  • ac_add_options –with-windows-version=603;

 

~

Leave a Reply

Your email address will not be published. Required fields are marked *