Skip to content

Instantly share code, notes, and snippets.

@hotsphink
hotsphink / sizes.txt
Created May 28, 2021 16:39
mkgist-created gist
1012M build
1000K debugger
12K devtools
60K editline
2.4M frontend
1.3M gc
592K gdb
920K irregexp
7.5M jit
5.9M jsapi-tests
@hotsphink
hotsphink / sizes
Created May 28, 2021 16:39
mkgist-created gist
1012M build
1000K debugger
12K devtools
60K editline
2.4M frontend
1.3M gc
592K gdb
920K irregexp
7.5M jit
5.9M jsapi-tests
Windows recovery environment
EFI System
Microsoft reserved
@hotsphink
hotsphink / viewsetup
Created January 4, 2021 21:55
Horrific script for creating and updating a view onto a live Windows disk for use with a VM, also for mounting said disk image onto a device for use
#!/usr/bin/zsh
LOOP_START=loop2
LOOP_BOOT=loop3
LOOP_END=loop4
MD=md0
if [ "$1" = "--list" ]; then
if [ -e /dev/$MD ]; then
sudo mdadm --detail /dev/$MD | perl -lane 'if (/^\s*Number/) { $active = 1 } elsif ($active) { print $F[-1]}' | while read DEV; do
@hotsphink
hotsphink / rr_ps_output.txt
Created October 22, 2020 16:58
mkgist-created gist
1721497 1721495 0 bzip2 -vf
1721559 1721468 0 /bin/sh -c # Generate a file that describes the local Normandy client.
1721560 1721468 -11 /bin/sh -c env LD_LIBRARY_PATH=":../../dist//bin" \
../../dist//bin/xpcshell \
/home/sfink/src/mozilla4/toolkit/components/normandy/metadata-script.js ../../dist//firefox-84.0a1.en-US.linux-x86_64.normandy.json
1721562 (1) 1721560 0 (forked without exec)
1721574 1721341 -9 /home/sfink/.mozbuild/_virtualenvs/mach/bin/python /home/sfink/src/mozilla4/mach python --no-virtualenv /home/sfink/src/mozilla4/build/submit_telemetry_data.py /home/sfink/.mozbuild
1721575 1721341 -9 /home/sfink/.mozbuild/_virtualenvs/mach/bin/python /home/sfink/.mozbuild/_virtualenvs/mach/lib64/python3.7/site-packages/glean/_subprocess/_process_dispatcher_helper.py gANjZ2xlYW4ubmV0LnBpbmdfdXBsb2FkX3dvcmtlcgpfcHJvY2VzcwpxAGNwYXRobGliClBvc2l4UGF0aApxAShYAQAAAC9xAlgEAAAAaG9tZXEDWAUAAABzZmlua3EEWAkAAAAubW96YnVpbGRxBVgFAAAAZ2xlYW5xBnRxB1JxCFgMAAAAbW96aWxsYS5tYWNocQljZ2xlYW4uY29uZmlnCkNvbmZpZ3VyYXRpb24KcQopg
@hotsphink
hotsphink / rr_ps_output
Created October 22, 2020 16:58
mkgist-created gist
1721497 1721495 0 bzip2 -vf
1721559 1721468 0 /bin/sh -c # Generate a file that describes the local Normandy client.
1721560 1721468 -11 /bin/sh -c env LD_LIBRARY_PATH=":../../dist//bin" \
../../dist//bin/xpcshell \
/home/sfink/src/mozilla4/toolkit/components/normandy/metadata-script.js ../../dist//firefox-84.0a1.en-US.linux-x86_64.normandy.json
1721562 (1) 1721560 0 (forked without exec)
1721574 1721341 -9 /home/sfink/.mozbuild/_virtualenvs/mach/bin/python /home/sfink/src/mozilla4/mach python --no-virtualenv /home/sfink/src/mozilla4/build/submit_telemetry_data.py /home/sfink/.mozbuild
1721575 1721341 -9 /home/sfink/.mozbuild/_virtualenvs/mach/bin/python /home/sfink/.mozbuild/_virtualenvs/mach/lib64/python3.7/site-packages/glean/_subprocess/_process_dispatcher_helper.py gANjZ2xlYW4ubmV0LnBpbmdfdXBsb2FkX3dvcmtlcgpfcHJvY2VzcwpxAGNwYXRobGliClBvc2l4UGF0aApxAShYAQAAAC9xAlgEAAAAaG9tZXEDWAUAAABzZmlua3EEWAkAAAAubW96YnVpbGRxBVgFAAAAZ2xlYW5xBnRxB1JxCFgMAAAAbW96aWxsYS5tYWNocQljZ2xlYW4uY29uZmlnCkNvbmZpZ3VyYXRpb24KcQopg
@hotsphink
hotsphink / ABITestPatches.diff
Created October 2, 2020 21:12
mkgist-created gist
# HG changeset patch
# User Steve Fink <[email protected]>
# Date 1601504771 25200
# Wed Sep 30 15:26:11 2020 -0700
# Node ID d2658c507732fb666d515e5bbe04912e91026e9a
# Parent f9261c82b0dd868417bf1eacfeda465a1542bc38
VoidStarOf is unnecessary. Just cast to `const void*`.
diff --git a/js/src/jsapi-tests/testJitABIcalls.cpp b/js/src/jsapi-tests/testJitABIcalls.cpp
--- a/js/src/jsapi-tests/testJitABIcalls.cpp
@hotsphink
hotsphink / ABITestPatches.diff
Created October 2, 2020 20:47
mkgist-created gist
# HG changeset patch
# User Steve Fink <[email protected]>
# Date 1601504771 25200
# Wed Sep 30 15:26:11 2020 -0700
# Node ID d2658c507732fb666d515e5bbe04912e91026e9a
# Parent f9261c82b0dd868417bf1eacfeda465a1542bc38
VoidStarOf is unnecessary. Just cast to `const void*`.
diff --git a/js/src/jsapi-tests/testJitABIcalls.cpp b/js/src/jsapi-tests/testJitABIcalls.cpp
--- a/js/src/jsapi-tests/testJitABIcalls.cpp
@hotsphink
hotsphink / inject.py
Created August 28, 2020 16:13
mkgist-created gist
#!/usr/bin/python3
from base64 import b64encode
import os
import sys
s = sys.stdin.read()
print("python import base64")
print('python exec(base64.b64decode("{}"))'.format(b64encode(s.encode()).decode()))
@hotsphink
hotsphink / inject.py
Created August 28, 2020 16:10
mkgist-created gist
#!/usr/bin/python3
from base64 import b64encode
import os
import sys
s = sys.stdin.read()
print("python import base64")
print('python exec(base64.b64decode("{}"))'.format(b64encode(s.encode()).decode()))