Skip to content

Instantly share code, notes, and snippets.

View rhashimoto's full-sized avatar

Roy Hashimoto rhashimoto

  • Shoestring Research
  • San Francisco Bay Area
  • 06:34 (UTC -07:00)
View GitHub Profile
@rhashimoto
rhashimoto / batest_vfstrace.c
Last active October 29, 2023 22:46
Hacked shim VFS test_vfstrace.c to use batch atomic writes
/*
** 2011 March 16
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
@rhashimoto
rhashimoto / ConscryptTest.java
Created September 12, 2019 19:28
HttpCore 5.0 server with Conscrypt provider
import org.apache.hc.core5.http.*;
import org.apache.hc.core5.http.impl.bootstrap.AsyncServer;
import org.apache.hc.core5.http.impl.bootstrap.AsyncServerBootstrap;
import org.apache.hc.core5.http.message.BasicHttpResponse;
import org.apache.hc.core5.http.nio.AsyncRequestConsumer;
import org.apache.hc.core5.http.nio.AsyncServerRequestHandler;
import org.apache.hc.core5.http.nio.entity.NoopEntityConsumer;
import org.apache.hc.core5.http.nio.ssl.BasicServerTlsStrategy;
import org.apache.hc.core5.http.nio.ssl.FixedPortStrategy;
import org.apache.hc.core5.http.nio.support.BasicRequestConsumer;