1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
# Check the systemd journal for mentions of my-service | |
journalctl | grep -i my-service | |
# Show the status of the service | |
systemctl status my-service | |
# Service is at /lib/systemd/system/my-service.service | |
# After editing unit file on disk, reload the units | |
systemctl daemon-reload |
dtc -I fs -O dts -s /proc/device-tree -o flattened.dts |
find /lib/modules/$(uname -r) -type f -name '*.ko*' |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
Run devtool modify linux-raspberrypi
from the same shell you run bitbake my-image
from.
The kernel source tree will be copied to build/workspace/sources/linux-raspberrypi
.
Make edits to the device tree at build/workspace/sources/linux-raspberrypi/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
and then run git diff > 0001-my-patch-description.patch
.
# Generate a key
# RSA and RSA
# 4096 bits
# Email from your .gitconfig
gpg --full-generate-key
# List key information
gpg --keyid-format LONG -k
The default branch has been renamed! develop is now named main
If you have a local clone, you can update it by running the following commands.
git branch -m develop main git fetch origin git branch -u origin/main main git remote set-head origin -a
fn main() { | |
let topic = TopicBuilder::new("lift", "report") | |
.with_subdevices(&["motor"]) | |
.build(); | |
println!("Topic: {:#?}", &topic); | |
} | |
#[derive(Debug)] | |
pub struct Topic { | |
display: String, |
use thiserror::Error; | |
#[derive(Error, Debug)] | |
pub enum StateMachineError { | |
#[error("No states are present in the state machine.")] | |
NoStatesPresent, | |
} | |
type Result<T, E = StateMachineError> = std::result::Result<T, E>; |
// let (entities, duration) = profile!(world.create_entities(1_000_000)); | |
// println!("Creating 1 million entities completed in {:?}", duration); | |
// | |
// let results: Vec<(_, Duration)> = profile_n!(100, world.create_entities(1_000_000)); | |
#[macro_export] | |
macro_rules! profile { | |
($($actions:tt)*) => { | |
{ | |
let start = std::time::Instant::now(); |