Skip to content

Instantly share code, notes, and snippets.

at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider.exportClassPathFromHierarchyOf(KotlinScriptClassPathProvider.kt:152)
at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider.computeCompilationClassPath(KotlinScriptClassPathProvider.kt:148)
at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider.access$computeCompilationClassPath(KotlinScriptClassPathProvider.kt:95)
at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider$compilationClassPathOf$1.invoke(KotlinScriptClassPathProvider.kt:144)
at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider$compilationClassPathOf$1.invoke(KotlinScriptClassPathProvider.kt:95)
at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProviderKt$sam$java_util_function_Function$0.apply(KotlinScriptClassPathProvider.kt)
at org.gradle.kotlin.dsl.provider.KotlinScriptClassPathProvider.compilationClassPathOf(KotlinScriptClassPathProvider.kt:144)
at org.gradle.kotlin.dsl.provider.StandardKotlinScriptEvaluator$InterpreterHost
@staktrace
staktrace / Makefile
Created February 28, 2021 20:17
libgit2-bug-find-similar
libgit2:
git clone https://github.com/libgit2/libgit2
mkdir libgit2-build
cd libgit2-build && cmake ../libgit2 && cmake --build .
testcase:
gcc -I libgit2/include/ -L libgit2-build/ main.c -l git2 -o main
LD_LIBRARY_PATH=libgit2-build/ ./main
@staktrace
staktrace / gist:17e9042134fd5ef8a098421656a41dc2
Created August 19, 2020 22:25
Getting all-time top committers to mozilla-central (via the gecko-dev git clone)
https://ehsanakhgari.org/blog/2012-10-11/data-about-peoples-contribution-to-the-mozilla-code-base/
The last query on the above blog post shows how to do it:
$ git clone https://github.com/mozilla/gecko-dev
$ cd gecko-dev
$ git log --format='%an <%ae>' --all --no-merges | sed 's/@/--at--/' | grep -v ^commit | sort | uniq -c | sort -rn | head
571349 <cinnabar--at--git>
28812 B2G Bumper Bot <release+b2gbumper--at--mozilla.com>
8081 Ehsan Akhgari <ehsan--at--mozilla.com>
7938 Boris Zbarsky <bzbarsky--at--mit.edu>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function crashit() {
var arr = new Array();
for (var i = 0; i < 300000; i++) {
arr[i] = (i % 256);
}
+ date
Thu Apr 4 16:01:40 UTC 2019
+ /home/ubuntu/mozsearch/scripts/build-codesearch.py /index/config.json mozilla-central
Walking path_spec name=mozilla-central-__GENERATED__, path=objdir-mozilla-central/
walking full tree
done
Walking repo_spec name=mozilla-central, path=/index/mozilla-central/gecko-dev
walking HEAD... WARN: mozilla-central:HEAD:testing/web-platform/meta/MANIFEST.json is too large to be indexed.
done
Finalizing...
Painting --- after optimization:
SolidColor p=0x7f578cf24820 f=0x7f578d0c6020(Viewport(-1)) key=51 bounds(0,0,76800,57960) layerBounds(0,0,76800,57960) visible(0,0,76800,57960) building(0,0,76800,57960) componentAlpha(0,0,0,0) clip() asr() clipChain() uniform ref=0x7f578d0c6020 agr=0x7f578d0c6020 (opaque 0,0,76800,57960) (rgba 255,255,255,255)
CompositorHitTestInfo p=0x7f578cf21820 f=0x7f578d0c6188(HTMLScroll(html)(-1)) key=28 bounds(0,0,0,0) layerBounds(0,0,0,0) visible(0,0,76800,57960) building(0,0,76800,57960) componentAlpha(0,0,0,0) clip() asr() clipChain() ref=0x7f578d0c6020 agr=0x7f578d0c6020 hitTestInfo(0x1) hitTestArea(0,0,76800,57960)
OwnLayer p=0x7f578cf21920 f=0x7f578d0c6698(ScrollbarFrame(scrollbar)(-1)) key=41 bounds(76200,0,600,57960) layerBounds(76200,0,600,57960) visible(76200,-60,600,58020) building(76200,-60,600,58020) componentAlpha(0,0,0,0) clip(0,0,76800,57960) asr() clipChain(0x7f578cf20220 <0,0,76800,57960> [root asr]) ref=0x7f578d0c6020 agr=0x7f578d0c6020 (flags 0x0) (scrolltarget 4)
diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp
index 5dac48949bbe..13a96eb805dd 100644
--- a/layout/generic/nsTextFrame.cpp
+++ b/layout/generic/nsTextFrame.cpp
@@ -5671,19 +5671,19 @@ void nsTextFrame::UnionAdditionalOverflow(nsPresContext* aPresContext,
// Inflate rect by stroke-width/2; we add an extra pixel to allow for
// antialiasing, rounding errors, etc.
nsRect strokeRect = *aVisualOverflowRect;
strokeRect.Inflate(textStrokeWidth / 2 + appUnitsPerDevUnit);
aVisualOverflowRect->UnionRect(*aVisualOverflowRect, strokeRect);
kats@kgupta-mbp socorro$ make build
/usr/local/bin/docker-compose build --build-arg userid=10001 --build-arg groupid=10001 app
Building app
Step 1/39 : FROM python:3.6.8-slim-stretch as socorro_image_base
---> 5d4dd7f71a65
Step 2/39 : ARG groupid=10001
---> Using cache
---> 31f4f3342290
Step 3/39 : ARG userid=10001
---> Using cache
$ bazel build //src/tools:codesearch --spawn_strategy=standalone --genrule_strategy=standalone --verbose_failures
INFO: Invocation ID: 72ec7e19-25c3-49f0-8145-afb5be1066f1
DEBUG: Rule 'com_github_nelhage_rules_boost' modified arguments {"shallow_since": "1546641660 -0600"}
DEBUG: Rule 'io_bazel_rules_go' modified arguments {"shallow_since": "1544891560 -0500"}
DEBUG: Rule 'org_dropbox_rules_node' modified arguments {"shallow_since": "1548794303 +0000"}
DEBUG: Rule 'com_google_absl' modified arguments {"shallow_since": "1548454011 -0500"}
DEBUG: Rule 'com_googlesource_code_re2' modified arguments {"shallow_since": "1535650560 +0000"}
DEBUG: Rule 'gflags' modified arguments {"shallow_since": "1541971260 +0000"}
DEBUG: Rule 'com_github_madler_zlib' modified arguments {"sha256": "6d4d6640ca3121620995ee255945161821218752b551a1a180f4215f7d124d45"}
DEBUG: Rule 'com_github_nanopb_nanopb' modified arguments {"sha256": "8bbbb1e78d4ddb0a1919276924ab10d11b631df48b657d960e0c795a25515735"}
$ ./mach try fuzzy -q "'linux 'wdspec"
migrating saved presets from '/home/kats/.mozbuild/autotry.ini' to '/home/kats/.mozbuild/try_presets.yml'
warning: unknown section 'syntax', the following presets were not migrated:
qr-reftests = -b do -p linux64 -u reftest-e10s[linux64-qr] -t none
reftests = -b o -p all -u reftest -t none
buildall = -b do -p all -u none -t none
qrd-reftests = -b d -p linux64 -u reftest-e10s[linux64-qr] -t none
buildallopt = -b o -p all -u none -t none
everything = -b do -p all -u all -t all
fpush-linux-android = -b do -p all -u all[linux64,linux64-qr,android-em-4.3-arm7-api-16] -t none