Skip to content

Instantly share code, notes, and snippets.

Diego Pino dpino

Block or report user

Report or block dpino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dpino
dpino / layout-tests-split
Created Mar 14, 2019
Split LayoutTests in several jobs
View layout-tests-split
#!/usr/bin/env bash
function usage {
echo "Usage: layout-tests-split [jobs] [webkit-dir]"
}
JOBS="${1:-1}"
WEBKIT_DIR="${2:-.}"
LAYOUT_TESTS_DIR="$WEBKIT_DIR/LayoutTests/"
@dpino
dpino / build_bots_status.py
Created Mar 12, 2019
WPE & GTK WebKit build bots status
View build_bots_status.py
#!/usr/bin/env python
import urllib
import json
from urllib2 import urlopen
bots_names = [
"WPE Linux 64-bit Release (Build)",
"WPE Linux 64-bit Debug (Build)",
@dpino
dpino / modulo.lua
Created Jan 4, 2019
Microbenchmark for LuaJIT's modulo operations
View modulo.lua
local C = ffi.C
function fold(fn, times)
local now = os.clock()
for i=1,times do
fn()
end
return os.clock() - now
end
@dpino
dpino / b4-to-aftr-over-inet.sh
Created Feb 8, 2018
Communication of a lwB4 network fuction with a remote lwAFTR over Internet
View b4-to-aftr-over-inet.sh
#/usr/bin/env bash
set -x
# This script implements a lwB4 network function insolated into its own network namespace. Once running any IPv4 network command
# will get forwarded to a remote lwAFTR over the Internet. Communication with the lwAFTR is meant to happen via an IPv6 tunnel
# broker (such as Hurricane Electric) which should be already up and running.
# Author: Diego Pino Garca <dpino@igalia.com>
# Based on https://marcelwiget.wordpress.com/2015/11/30/lightweight-4over6-b4-client-in-linux-namespace/
View run-all.sh
#!/usr/bin/env bash
FOLDERS=(
built-ins
annexB
intl402
language
)
for each in ${FOLDERS[@]}; do
View make-report.pl
#!/usr/bin/env perl
# Reads out a web-platform-test run output and prints out a report were errors
# are grouped by text message and list of files. Reports also on total number
# of distinct errors and total number of failing files.
# Arguments:
# Agent: Actual the head of the string containing the test name. The rest of
# the string should the filename.
# Errorfile: web-platform-test output of a ./wpt run.
@dpino
dpino / wpt-run-report.pl
Last active Jan 16, 2018
Parses web-platform-test output and groups results by error message and list of files
View wpt-run-report.pl
#!/usr/bin/env perl
# Reads out a web-platform-test run output and prints out a report were errors
# are grouped by text message and list of files. Reports also on total number
# of distinct errors and total number of failing files.
# Arguments:
# Agent: Actual the head of the string containing the test name. The rest of
# the string should the filename.
# Errorfile: web-platform-test output of a ./wpt run.
@dpino
dpino / snakecoin-server-full-code.py
Last active Jan 4, 2019 — forked from aunyks/snakecoin-server-full-code.py
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
View snakecoin-server-full-code.py
#!/usr/bin/env python
# Source https://gist.github.com/aunyks/47d157f8bc7d1829a729c2a6a919c173
# Modifications:
# - Can pass port number as command line argument.
# - Added GET method /add_peer.
# - On retrieving blockchain, call consensus to synchronize with other peers.
# - On updating the current blockchain from a peers' blockchain, convert list
# of JSON blocks to native Block objects.
@dpino
dpino / iframe-as-worker.html
Created Oct 24, 2017
Using an iframe as a worker
View iframe-as-worker.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<iframe id="w0" src="iframe2.html" style="display: none"></iframe>
View PR 513 - selftest
$ git log -1
commit 9856da7802247e70ba7410666d0048fc7a1e2f07
Author: Diego Pino Garcia <dpino@igalia.com>
Date: Thu Oct 27 14:48:40 2016 +0000
Add unit test for ipv6_cache_trigger
TEST core.timer
TEST core.counter
TEST core.lib
You can’t perform that action at this time.