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
  • List all URLs in an NSPR log: cat <thelog> | grep -E “]: uri=https?://” | sed “s/.*uri=\(https\?:\\/\\/[^\\/]\+\).*$/\1/” | sort -u > urls
  • \[Bug (\d+)\] -> * {{nbug|\1}}
  • 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
  • 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);
  • STATUS_RESOLVING      = 0x804b0003
    STATUS_RESOLVED       = 0x804b000b
    STATUS_CONNECTING_TO  = 0x804b0007
    STATUS_CONNECTED_TO   = 0x804b0004
    STATUS_SENDING_TO     = 0x804b0005
    STATUS_WAITING_FOR    = 0x804b000a
    STATUS_RECEIVING_FROM = 0x804b0006
  • hg log -r ‘removes(“path/to/file.ext”)’

 

~

Leave a Reply

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