Skip to content

Instantly share code, notes, and snippets.

@hotsphink
hotsphink / text.txt
Created July 2, 2019 21:45
mkgist-created gist
function makeExtensibleString() {
var s = "xxxxxxxx";
var t = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // 31 characters
var r1 = t + s;
r1.match(/x/);
return r1;
}
function test() {
const s = makeExtensibleString();
@hotsphink
hotsphink / text.txt
Created June 28, 2019 19:02
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,21 +180,24 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / patch-to-dmd
Created June 28, 2019 18:55
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,21 +180,27 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / text.txt
Created June 28, 2019 18:55
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,21 +180,27 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / text.txt
Created June 28, 2019 18:55
mkgist-created gist
This file has been truncated, but you can view the full file.
#-----------------------------------------------------------------
# dmd.py -o dmd2.out dmd-TabsOpenSettled-2-1908.json.gz
Invocation {
$DMD = '--mode=dark-matter --stacks=full'
Mode = 'dark-matter'
}
#-----------------------------------------------------------------
@hotsphink
hotsphink / text.txt
Created June 28, 2019 17:40
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,17 +180,19 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / text.txt
Created June 28, 2019 17:39
mkgist-created gist
This file has been truncated, but you can view the full file.
#-----------------------------------------------------------------
# dmd.py -o dmd.out dmd-TabsOpenSettled-2-7156.json.gz
Invocation {
$DMD = '--mode=dark-matter --stacks=full'
Mode = 'dark-matter'
}
#-----------------------------------------------------------------
@hotsphink
hotsphink / compare-scores
Last active June 25, 2019 17:41
mkgist-created gist
#!/usr/bin/perl
use Getopt::Long;
use strict;
my %score;
my $prename;
my $postname;
GetOptions("pre|0=s" => \$prename,
@hotsphink
hotsphink / text.txt
Created June 25, 2019 17:39
mkgist-created gist
Tools for looking at octane scores
@hotsphink
hotsphink / text.txt
Created June 25, 2019 17:37
mkgist-created gist
#!/usr/bin/perl
use Getopt::Long;
use strict;
my %score;
my $prename;
my $postname;
GetOptions("pre|0=s" => \$prename,