4-threads for the Raspberry Pi 4 & 5
sysbench cpu --cpu-max-prime=20000 --threads=4 --validate run
#!/opt/homebrew/bin/fish | |
# | |
# Upload all revoked GnuPG (GPG) keys to a keyserver. | |
# Usage: fish ./upload_revoked.sh | |
# | |
# Copyright (c) Michael de Silva | |
# Profile: https://desilva.io/about | |
# Email: mike.cto@securecloudsolutions.io // PGP: https://bit.ly/3W8u9R8 | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of |
Your task is to extend the functionality of the Komodo DeFi Framework by adding a new node type called a Metrics Node. This will serve as a foundational piece for further development and integration within our framework.
Please fork the Komodo DeFi Framework repository and create a new branch off the dev branch to work on this task. Metrics Node Development:
# ┌───────────── Minute (0 - 59) | |
# │ ┌─────────── Hour (0 - 23) | |
# │ │ ┌───────── Date (1 - 31) | |
# │ │ │ ┌─────── Month (1 - 12) | |
# │ │ │ │ ┌───── Day of Week (0 - 7,0 Sunday,6 Saturday,7 Sunday) | |
# │ │ │ │ │ | |
0 0 * * * /etc/rc.restart_webgui |
ssh-keygen -o -a 500 -t ed25519 -f ~/.ssh/id_ed25519 -C "foo@bar.com"
Ref: https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54
async fn accept_form(Form(input): Form<Input>, state: Extension<AppState>) -> Response<Body> { | |
dbg!(&input); | |
match save_form(&input, &state).await { | |
Ok(_) => (), | |
Err(e) => tracing::error!("Failed: {:?}", e), | |
} | |
let mut response = Response::builder() | |
.status(StatusCode::SEE_OTHER) |
--- | |
criticalpatterns: | |
- 'pam_unix[\w\d\D]*failure' | |
- 'gkr-pam[\w\d\D]*invalid' | |
- 'USER_AUTH[\w\d\D]*pam_gnome_keyring[\w\d\D]*failed' | |
criticalexceptions: | |
- 'timestamp:".*",level:"(error|warn)"' | |
- '0 errors' |
use std::cell::UnsafeCell; | |
use std::sync::atomic::{AtomicBool, Ordering}; | |
const LOCKED: bool = true; | |
const UNLOCKED: bool = false; | |
pub struct Mutex<T> { | |
locked: AtomicBool, | |
v: UnsafeCell<T>, | |
} |