Skip to content

Instantly share code, notes, and snippets.

@dtikhonov
dtikhonov / make-website.sh
Created November 5, 2019 13:51
Make website for HTTP/3 performance test
#!/bin/bash
set -ex
mkdir $1
cd $1
cat >index.html <<HTML
<h1>Index</h1>
<ul>
<li><a href=file-1M>1 MB file</a>
<li><a href=file-10M>10 MB</a>
<li><a href=file-100M>100 MB file</a>
### Keybase proof
I hereby claim:
* I am dtikhonov on github.
* I am dtikhonov (https://keybase.io/dtikhonov) on keybase.
* I have a public key ASCb76WGQSQva7MYF4sUN5lnXZLNnMfG5iMbHY9vYGswCAo
To claim this, I am signing this object:
@dtikhonov
dtikhonov / tom-de-decker.c
Created May 22, 2019 20:27
Tom De Decker QPACK scenario
/* Compile as follows:
* gcc -o tom-de-decker -Wall tom-de-decker.c libls-qpack.a
*/
#include <stdio.h>
#include "lsqpack.h"
int
main (void)
@dtikhonov
dtikhonov / gist:71735cb8435c81bb8afb190033314ade
Last active January 2, 2019 17:41
HP mask using CTR vs ECB using stock openssl (Ubuntu 16)
/* Test whether CTR and ECB produce the same HP mask */
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/evp.h>
#include <openssl/ssl.h>