- Verify the recipientβs identity using a trusted, independent channel (not email alone).
- Obtain the recipientβs public key from a trusted source (direct transfer, verified website, or keyserver).
- Import the recipientβs public key into your local GPG keyring.
- Verify the recipientβs key fingerprint against a value confirmed via a separate communication channel.
- Decide whether to mark the key as trusted in your local trust database (this affects GPG behavior, not cryptographic security).
- Encrypt the file for the recipient and sign it with your private key using ASCII-armored output.
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
| If the `InternalAPI` should not be part of the `ItemsCollection`, we can decouple it by using **dependency injection** or **traits**. This way, the `ItemsCollection` can interact with the `InternalAPI` without directly owning or knowing about its implementation. This approach aligns with the **Dependency Inversion Principle** and makes the code more modular and testable. | |
| Hereβs how you can refactor the code to achieve this: | |
| --- | |
| ### Refactored Code | |
| ```rust | |
| use reqwest::blocking::Client; |
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
| #!/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:
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
| # ββββββββββββββ 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
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
| 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) |
NewerOlder
