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
struct Buffer<const N: usize> { | |
data: [u8; N] | |
} | |
impl<const N: usize> Buffer<N> { | |
fn new() -> Self { | |
Self { | |
data: [0; N] | |
} | |
} |
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
// 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 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 |
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] | |
name = "gitlab-sso" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
actix-rt = "2.7.0" | |
actix-web = "4.2.1" |
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] | |
name = "test_data_fusion" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
futures = "0.3.24" | |
futures-util = "0.3.24" |
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] | |
name = "test_data_fusion" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
datafusion = "11.0.0" | |
foundationdb = {git = "https://github.com/foundationdb-rs/foundationdb-rs.git", features=["embedded-fdb-include", "fdb-7_1"]} |
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
def verify(self, secret): | |
identifier = bytes(self.identifier, encoding="utf-8") | |
secret = bytes(secret, encoding="utf-8") | |
signature = hmac_sha256(secret, identifier) | |
for caveat in self.caveats: | |
signature = hmac_sha256(signature, caveat.encode("utf-8")) |
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] | |
name = "surreal" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
surrealdb = {version = "1.0.0-beta.6", default-features = false, features=["parallel", "scripting", "http", "kv-echodb"]} | |
eyre = "0.6.8" |
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
let Map = | |
https://raw.githubusercontent.com/dhall-lang/dhall-lang/master/Prelude/Map/Type | |
let types = ./types.dhall | |
let Service = | |
{ deploy = None types.Deploy | |
, build = None types.Build | |
, cap_add = None (List Text) | |
, cap_drop = None (List Text) |
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 clokwerk::{AsyncScheduler, TimeUnits}; | |
use std::time::Duration; | |
async fn job() { | |
dbg!("It works"); | |
} | |
#[tokio::main] | |
async fn main() { | |
let mut scheduler = AsyncScheduler::new(); |
NewerOlder