For invoice reimbursements, use imagemagick
CLI tools to help us make invoice PDF compliance easy!
# Use whatever package manager you need, likely:
sudo apt install imagemagick
// Simple test to validate weights resulting from weight functions, generated by benchmarking, against various known limits. | |
// | |
// NOTE: this is simply to provide a rough indication of dispatchable weights in relation to block limits, which can be useful for: | |
// - ensuring a dispatchable does not exceed block, max extrinsic limits and regression testing | |
// - evaluating if some optimisation results in net reduction in weight usage | |
// - getting a feel for weights early during pallet development and monitoring through optimisation | |
// | |
// Is only as good as the corresponding runtime configuration (i.e. test placed within pallet with mock runtime vs placed within runtime with actual runtime config). | |
// Also ensure the limits are relevant to your implementation, they may have changed with newer versions and will definitely change with async backing. | |
// Finally, it uses the generated weight functions directly and therefore does not cater to any post-dispatch weight adjustment resulting from a dispatchable. |
For invoice reimbursements, use imagemagick
CLI tools to help us make invoice PDF compliance easy!
# Use whatever package manager you need, likely:
sudo apt install imagemagick
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
I started this gist as an index for all of the staking reports. Almost a year in, we migrated everything to https://polkadot.network/tag/staking-updates/. This page will no longer be updated:
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].