Skip to content

Instantly share code, notes, and snippets.

@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()))
@hotsphink
hotsphink / text.txt
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()))
@hotsphink
hotsphink / text.txt
Created July 29, 2020 16:33
mkgist-created gist
String stats:
- Questions:
- How much memory did we save via deduplication?
- How many strings did we save via deduplication?
- What percent of ropes end up flattened?
- How much memory does eager extensibility save?
- What percent of rope nodes are directly referenced?
- How many string compares are we doing?
- How many bytes of string compares are we doing?
- How many string hashes are we doing?
@hotsphink
hotsphink / text.txt
Created July 1, 2020 21:18
mkgist-created gist
var g1 = newGlobal({newCompartment: true});
g1.debuggeeGlobal = this;
g1.eval(`
dbg = new Debugger(debuggeeGlobal);
dbg.onExceptionUnwind = () => undefined;
`);
var g2 = newGlobal({newCompartment: true});
try {
g2.eval('h = {}; quintessence');
@hotsphink
hotsphink / nightly-builds
Created June 16, 2020 18:50
mkgist-created gist
#!/bin/bash
# Suppress build:
# % touch $srcdir/NOBUILD
# Suppress clobber:
# % touch $srcdir/NOCLOBBER
message=""
function msg () {
@hotsphink
hotsphink / crontab
Created June 16, 2020 18:49
mkgist-created gist
0 0 * * * /home/sfink/bin/nightly-builds >/home/sfink/nightly.log 2>&1
0 7 * * * env DISPLAY=:1.0 notify-send -t 86400000 "$(cd $HOME/src/mozilla && $HOME/bin/hg phquery sfink --list)"