This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Suppress build: | |
# % touch $srcdir/NOBUILD | |
# Suppress clobber: | |
# % touch $srcdir/NOCLOBBER | |
message="" | |
function msg () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
d="$(pwd)" | |
while [ "$d" != / ]; do | |
if [ -x "$d/mach" ] && [ -f "$d/mach" ]; then break; fi | |
d="$(dirname "$d")" | |
done | |
if [ "$d" = / ]; then | |
d="$HOME/src/mozilla" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
d="$(pwd)" | |
while [ "$d" != / ]; do | |
if [ -x "$d/mach" ] && [ -f "$d/mach" ]; then break; fi | |
d="$(dirname "$d")" | |
done | |
if [ "$d" = / ]; then | |
d="$HOME/src/mozilla" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `mc <suffix>`: Set MOZCONFIG to the current hg root's mozconfig.<suffix> | |
# file. If the file does not exist, will ask if you want to use the most | |
# recently edited one from a sibling directory. | |
# | |
function mc () { | |
if [ $# = 0 ]; then | |
echo "MOZCONFIG is ${MOZCONFIG:-unset}" | |
echo "available:" | |
for f in "$(hg root)/mozconfig."*; do | |
echo "${f#*mozconfig.}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% sudo podman load debian8-amd64-build < ~/Builds/SM-cgc-image.tar.zst | |
open /var/tmp/podman430126794/manifest.json: not a directory | |
Error: error pulling "debian8-amd64-build": unable to pull dir:/var/tmp/podman430126794: unable to pull image: Error determining manifest MIME type for dir:/var/tmp/podman430126794: open /var/tmp/podman430126794/manifest.json: not a directory |