Skip to content

Instantly share code, notes, and snippets.

View pvdrz's full-sized avatar
🐕
Working from home

Christian Poveda Ruiz pvdrz

🐕
Working from home
View GitHub Profile
@pvdrz
pvdrz / client.log
Last active September 18, 2023 18:51
client-cert-verification
Running `/home/christian/Workspace/ferrous-systems/rustls/rustls/target/debug/tl
sclient-mio --http --port 1443 --cafile /home/christian/.local/share/mkcert/rootCA.pe
m --auth-key localhost_client-client-key.pem --auth-certs localhost_client-client.pem
localhost`
ConnectionCore::for_client(server_name=DnsName("localhost"))
start_handshake(server_name=DnsName("localhost"))
emit_client_hello_for_retry()
CommonState::send_msg(m.typ=Handshake::ClientHello, must_encrypt=false)
CommonState::queue_tls_message(m.payload.len=231, m.typ=Handshake)
ChunkVecBuffer::append(bytes.len=236) <<<BUFFERING>>>
amd-ucode
baobab
base
base-devel
bat
bluez
bluez-utils
cheese
chromium
clang
@pvdrz
pvdrz / client.log
Created September 5, 2023 03:46
rustls 0.5-RTT
* Sending first request:
ConnectionCore::for_client(server_name=DnsName("localhost"))
start_handshake(server_name=DnsName("localhost"))
emit_client_hello_for_retry()
CommonState::send_msg(m.typ=Handshake::ClientHello, must_encrypt=false)
CommonState::queue_tls_message(m.payload.len=231, m.typ=Handshake)
ChunkVecBuffer::append(bytes.len=236) <<<BUFFERING>>>
Stream::complete_prior_io()
ConnectionCommon::complete_io()
ConnectionCommon::write_tls()
@pvdrz
pvdrz / client.log
Last active August 31, 2023 15:35
rustls 0-RTT
* Sending first request:
ConnectionCore::for_client(server_name=DnsName("localhost"))
start_handshake(server_name=DnsName("localhost"))
emit_client_hello_for_retry()
CommonState::send_msg(m.typ=Handshake::ClientHello, must_encrypt=false)
CommonState::queue_tls_message(m.payload.len=231, m.typ=Handshake)
ChunkVecBuffer::append(bytes.len=236) <<<BUFFERING>>>
Stream::complete_prior_io()
ConnectionCommon::complete_io()
ConnectionCommon::write_tls()
@pvdrz
pvdrz / lib.rs
Created March 15, 2023 18:41
Christian's Solution
//! Board Support Crate (BSC) for the nRF52840 Development Kit
#![deny(missing_docs)]
#![no_std]
use core::{
convert::TryFrom,
fmt, ops,
sync::atomic::{self, Ordering},
time::Duration,
local on_windows = vim.loop.os_uname().version:match 'Windows'
local function join_paths(...)
local path_sep = on_windows and '\\' or '/'
local result = table.concat({ ... }, path_sep)
return result
end
vim.cmd [[set runtimepath=$VIMRUNTIME]]
[ERROR rust_analyzer::lsp_utils] failed to run build scripts:
error: cannot find a built-in macro with name `derive_const`
--> library/core/src/macros/mod.rs:1464:5
|
1464 | / pub macro derive_const($item:item) {
1465 | | /* compiler built-in */
1466 | | }
| |_____^

log

This data set is composed of HTTP request logs that are small and contain many strings.

Raw Data

For operations, time per iteration; for size, bytes. Lower is better.

Serialize / deserialize speed and size

@pvdrz
pvdrz / main.rs
Created March 18, 2021 20:32
traverse function calls
// This is required to be able to use the rustc crates.
#![feature(rustc_private)]
// This is only required for the `rustc_*` crates. Regular dependencies can be used without it.
extern crate rustc_driver;
extern crate rustc_hir;
extern crate rustc_interface;
extern crate rustc_middle;
use rustc_driver::{catch_with_exit_code, Callbacks, Compilation, RunCompiler};
from datetime import date
class Tarea:
# Inicializar los atributos del objeto
def __init__(self, descripcion, vencimiento):
self.descripcion = descripcion
self.terminada = False
self.vencimiento = vencimiento
# Marcar la tarea como terminada