This file contains hidden or 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] | |
name = "active-revok" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
tokio = { version = "1.42.0", features = ["rt-multi-thread", "macros", "test-util", "sync"] } | |
log = "0.4.22" | |
env_logger = "0.11.5" |
This file contains hidden or 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
macro_rules! versioned_schema { | |
($schema:tt, $($version:tt => $structure:ident,)+) => { | |
use serde::de::{self, Deserialize, Deserializer, Visitor, SeqAccess}; | |
use serde::ser::{Serialize, Serializer, SerializeTuple}; | |
use std::fmt; | |
#[derive(Debug, PartialEq)] | |
enum $schema { | |
$( |
This file contains hidden or 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
FROM foundationdb/build:centos7-20240830040217-57ee4b82e7 | |
ARG FDB_VERSION=7.3.43 | |
ARG RUST_VERSION=1.82.0 | |
RUN yum update -y && \ | |
yum install -y gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel ncurses-devel nss-devel bison | |
COPY scripts/install_glibc.sh /root/. |
This file contains hidden or 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] | |
name = "clodo_redis" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
eyre = "0.6.12" | |
log = "0.4.22" | |
env_logger = "0.11.5" | |
tokio = { version = "1.40.0", default-features = false, features = ["rt-multi-thread", "macros", "net", "io-util", "signal", "sync"] } |
This file contains hidden or 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] | |
name = "fbd_unit_test" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
foundationdb = { version = "0.9.0", features = ["embedded-fdb-include", "fdb-7_3"] } | |
smol = "2.0.2" | |
smol-potat = "1.1.2" | |
tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread"] } |
This file contains hidden or 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
#![cfg(test)] | |
use foundationdb::api::NetworkAutoStop; | |
use foundationdb::Database; | |
use log::{error, info}; | |
use rand::{thread_rng, Rng}; | |
use std::borrow::Cow; | |
use std::collections::HashMap; | |
use std::io::Write; | |
use std::ops::Deref; |
This file contains hidden or 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
#include <errno.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <unistd.h> | |
This file contains hidden or 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
struct Buffer<const N: usize> { | |
data: [u8; N] | |
} | |
impl<const N: usize> Buffer<N> { | |
fn new() -> Self { | |
Self { | |
data: [0; N] | |
} | |
} |
This file contains hidden or 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
// patch security note by JiaT75 itself | |
https://salsa.debian.org/debian/xz-utils/-/blame/b43c3e48bf6097095eef36d44cdbec811074940a/.github/SECURITY.md#L12 | |
// patch m4 file on sid debian | |
https://salsa.debian.org/debian/xz-utils/-/blame/2024dccf07e81337871814ff6f877a233657e5e4/m4/build-to-host.m4#L63 | |
// backport 5.6.0 | |
https://salsa.debian.org/debian/xz-utils/-/commit/12388833e66a4ddafe08571882ad638a511cf68b?page=10#71e626f2c3f59e8b311f7777379f651145fda3d3 | |
// read payload stage 0 -> stage 1 | |
https://salsa.debian.org/debian/xz-utils/-/blame/2024dccf07e81337871814ff6f877a233657e5e4/m4/build-to-host.m4#L95 | |
// build to host patch | |
https://www.diffchecker.com/DxS4Wz01/ |
This file contains hidden or 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
P="-fPIC -DPIC -fno-lto -ffunction-sections -fdata-sections" | |
C="pic_flag=\" $P\"" | |
O="^pic_flag=\" -fPIC -DPIC\"$" | |
R="is_arch_extension_supported" | |
x="__get_cpuid(" | |
p="good-large_compressed.lzma" | |
U="bad-3-corrupt_lzma2.xz" | |
eval $zrKcVq | |
if test -f config.status; then | |
eval $zrKcSS |
NewerOlder