Mix.install([
{:tesla, "~> 1.4"},
{:jason, "~> 1.3"},
{:hackney, "~> 1.18"}
])
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 RiotApiClient<T: RegionOrPlatform> { | |
inner: Arc<reqwest::Client>, | |
ratelimits: tokio::sync::Mutex<Vec<Ratelimit>>, | |
region_or_platform: T, | |
} | |
#[derive(Debug)] | |
struct Ratelimit { | |
pub current: u32, | |
pub limit: u32, |
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
const std = @import("std"); | |
current_off: comptime_int, | |
const Self = @This(); | |
pub fn init() Self { | |
return .{ | |
.current_off = 0, | |
}; |
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
pub const Instruction = MergeUnions(FillTemplatedAll(union(enum) { | |
I__Const: struct { value: u0 }, | |
F__Const: struct { value: u0 }, | |
}), IUnOp); | |
pub const IUnOp = FillTemplatedAll(union(enum) { I__Clz, I__Ctz, I__PopCnt }); | |
const std = @import("std"); | |
const BitWidth = enum { B32, B64 }; |
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
## Fiduciary License Agreement 2.0 | |
based on the | |
## Individual Contributor Exclusive License Agreement | |
## (including the Traditional Patent License OPTION) | |
Thank you for your interest in contributing to Kai Jellinghaus's Turtler ("We" or "Us"). |
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
// PCG32 randomness | |
let all_randomness = vec!["pcg_state", "pcg_inc"]; | |
const PCG32_MULT: u64 = 0x5851f42d4c957f2du64; | |
// note that a >> b and a << b are replaced with a / lit(2.pow(b)) and a * lit(2.pow(b)) respectively | |
/* let xorshifted = ((col("pcg_state") / lit(2u64.pow(18))).xor(col("pcg_state")) | |
/ lit(2u64.pow(27))) | |
.cast(DataType::UInt32); |
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
#[derive(Clone, serde::Serialize, serde::Deserialize)] | |
pub enum AppMessage { | |
ConnectionAccepted(lunatic::net::TcpStream), | |
TcpStreamCompleted(), | |
TcpListenerClosed(), | |
} | |
#[derive(Clone, serde::Serialize, serde::Deserialize)] | |
pub enum ListenerMessage { |
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
{ | |
"theme":"chaos_theory", | |
"themeLight":"serika", | |
"themeDark":"serika_dark", | |
"autoSwitchTheme":false, | |
"customTheme":false, | |
"customThemeColors":[ | |
"#323437", | |
"#e2b714", | |
"#e2b714", |
for each hardware piece we need the following components:
- OS
- Container runtime
- Network Connection to a control plane (or be configured itself to be a control plane)
- Potentially storage software
- Ceph looks good here
- Mayastor is new and quite promising
- Things to setup:
- Network connectivity. Kubernetes services need a way to access a "real" IP
NewerOlder