Skip to content

Instantly share code, notes, and snippets.

View valenting's full-sized avatar

Valentin Gosu valenting

View GitHub Profile

Intro

Definitions

  • URI - Uniform Resource Identifier
  • URL - Uniform Resource Locator

These two terms are used interchangeably throughout the codebase and essentially represent the same thing - a string of characters that represents a specific resource.

In order to ensure thread safety it is important that all of the objects and interfaces of URI objects are immutable.
If you are implementing a new URI type, please make sure that none of the type's public methods change the URL.
import pyshark
from datetime import datetime,timedelta
import time
capture = pyshark.LiveCapture(interface='wlp3s0')
# capture.set_debug()
connection_map = {}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@valenting
valenting / gist:75f1ed82b5db5b1fbb3784dff4fa3ce9
Created April 20, 2017 05:00
rcwn-2017-04-telemetry-plan.txt
valentin: contact devtools. get help for new icon. how they receive info from channel?
extra used bw:
- probe for how much data each channel is using
- probe how much _extra_ data channels that race are using
- track when we have cache entry -> we might use it -> that means we are using extra data
extra probes:
- async open time + average cache speed = estimation for time to load from cache. implemented once we start cancelling
- report time gain from racing by comparing onStartRequest time to estimated onStartRequest time (which we estimate by computing cache speed) - if we don't cancel the request we can report OnCacheEntryCheck as the best estimate for time if loaded from cache. (not extra gain, but extra probe for what whould happen if we didn't race)
icecold@icecold-tp:~/workspace/id2210-vt17$ mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Project ID2210 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (4 KB at 0.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/22/maven-plugins-22.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/22/maven-plugins-22.pom (13 KB at 509.3 KB/sec)
<!--
Copyright (c) 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
diff --git a/js/script.js b/js/script.js
index 419ea1b..4f83772 100644
--- a/js/script.js
+++ b/js/script.js
@@ -1,4 +1,5 @@
-chrome.extension.sendMessage({}, function(response) {
+let target = chrome.runtime || browser.runtime;
+target.sendMessage({}, function(response) {
var readyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
./mach build
0:00.12 /usr/bin/make -f client.mk MOZ_PARALLEL_BUILD=8 -s
0:00.69 Adding client.mk options from /home/icecold/mozilla-central/.mozconfig:
0:00.69 AUTOCLOBBER=1
0:00.69 MOZ_MAKE_FLAGS=-j8
0:00.69 MOZ_OBJDIR=/home/icecold/mozilla-central/obj-ff-dbg
0:00.69 OBJDIR=/home/icecold/mozilla-central/obj-ff-dbg
0:00.69 FOUND_MOZCONFIG=/home/icecold/mozilla-central/.mozconfig
0:00.88 Elapsed: 0.00s; From dist/branding: Kept 4 existing; Added/updated 0; Removed 0 files and 0 directories.
0:00.89 Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
# Crash reproducer for clang version 3.8.1-12ubuntu1 (tags/RELEASE_381/final)
# Driver args: "--driver-mode=g++" "-std=gnu++11" "-fPIC" "-Qunused-arguments" "-Qunused-arguments" "-Wall" "-Wc++11-compat" "-Wempty-body" "-Wignored-qualifiers" "-Woverloaded-virtual" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wwrite-strings" "-Wno-invalid-offsetof" "-Wclass-varargs" "-Wloop-analysis" "-Wc++11-compat-pedantic" "-Wc++14-compat" "-Wc++14-compat-pedantic" "-Wc++1z-compat" "-Wimplicit-fallthrough" "-Werror=non-literal-null-conversion" "-Wstring-conversion" "-Wthread-safety" "-Wno-inline-new-delete" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-unknown-warning-option" "-Wno-return-type-c-linkage" "-fcolor-diagnostics" "-fno-exceptions" "-fno-strict-aliasing" "-fno-rtti" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-g" "-fno-omit-frame-pointer" "-Werror" "-pthread" "-Wno-error=shadow" "-fcolor-diagnostics" "-I" "/home/icecold/mozilla-central/obj-ff-dbg/dis