This document proposes a new scheme to avoid address reuse while retaining some of the convenience of address reuse, keeping recoverability purely from Bitcoin time chain and avoiding visible fingerprint. The scheme has negligible average overhead.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Interactive sign-ins only | |
SigninLogs | |
| where AuthenticationProcessingDetails has "Legacy TLS" | |
and AuthenticationProcessingDetails has "True" | |
| extend JsonAuthProcDetails = parse_json(AuthenticationProcessingDetails) | |
| mv-apply JsonAuthProcDetails on ( | |
where JsonAuthProcDetails.key startswith "Legacy TLS" | |
| project HasLegacyTls=JsonAuthProcDetails.value | |
) | |
| where HasLegacyTls == true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unused)] // silence unused warnings while exploring (to comment out) | |
use std::{error::Error, time::Duration}; | |
use tokio::time::sleep; | |
use redis::{ | |
from_redis_value, | |
streams::{StreamRangeReply, StreamReadOptions, StreamReadReply}, | |
AsyncCommands, Client, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Additional conversion methods for `HeaderValue`. | |
pub trait HeaderValueExt { | |
fn to_string(&self) -> String; | |
} | |
impl HeaderValueExt for HeaderValue { | |
fn to_string(&self) -> String { | |
self.to_str().unwrap_or_default().to_string() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stick this in your home directory and point your Global Git config at it by running: | |
# | |
# $ git config --global core.attributesfile ~/.gitattributes | |
# | |
# See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details | |
*.c diff=cpp | |
*.h diff=cpp | |
*.c++ diff=cpp | |
*.h++ diff=cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use deadpool_postgres::tokio_postgres::NoTls; | |
use deadpool_postgres::{Config, ManagerConfig, Pool, PoolError, RecyclingMethod}; | |
use once_cell::sync::Lazy; | |
use std::sync::Arc; | |
static DB_POOL: Lazy<Arc<Pool>> = Lazy::new(|| { | |
let mut cfg = Config::new(); | |
cfg.dbname = Some( | |
std::env::var("DATABASE_URL") | |
.map_err(|_| String::from("Environment variable Database URL could not be read")) |
edge count:
lncli describegraph | jq '.edges | length'
32055
node count:
lncli describegraph | jq '.nodes | length'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The goal of this script is to trim messages that have been processed by | |
-- all extant groups from the a given Redis stream. It returns the number | |
-- of messages that were deleted from the stream, if any. I make no | |
-- guarantees about its performance, particularly if the stream is large | |
-- and not fully processed (so a simple XTRIM isn't possible). | |
-- First off, bail out early if the stream doesn't exist. | |
if redis.call("EXISTS", KEYS[1]) == 0 then | |
return false | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use futures::{ | |
future::{Future, IntoFuture}, | |
sync::oneshot, | |
}; | |
use std::{ | |
collections::VecDeque, | |
sync::{Arc, Mutex}, | |
}; | |
struct Inner<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kpn.datalab.mab; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.flink.api.common.functions.RichMapFunction; | |
import org.apache.flink.api.common.restartstrategy.RestartStrategies; | |
import org.apache.flink.api.java.utils.ParameterTool; | |
import org.apache.flink.configuration.Configuration; | |
import org.apache.flink.streaming.api.datastream.DataStreamSource; | |
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; |