Skip to content

Instantly share code, notes, and snippets.

View badrbouslikhin's full-sized avatar
🦀
Learning Rust

Badr Bouslikhin badrbouslikhin

🦀
Learning Rust
  • Lyon, France
View GitHub Profile
@badrbouslikhin
badrbouslikhin / justfile
Created July 18, 2023 10:18
Justfile for building, uploading, erasing flash, and running firmware on a nRF52840 connected to a Raspberry Pi.
TARGET_HOST := "pi@rpi-4"
TARGET_PATH := "/home/pi/kalibrator/kalibrator-fw"
TARGET_ARCH := "thumbv7em-none-eabihf"
SOURCE_PATH := "./target/" + TARGET_ARCH + "/release/kalibrator-fw"
default: build erase upload run
local: build erase-local run-local
build:
cargo build --release
@badrbouslikhin
badrbouslikhin / rtic-embassy-poc.rs
Created October 24, 2021 22:53
Proof of concept of RTIC + Embassy on a Thingy:52
#![no_std]
#![no_main]
#![feature(type_alias_impl_trait)]
#![feature(alloc_error_handler)]
#![allow(incomplete_features)]
#![macro_use]
use alloc_cortex_m::CortexMHeap;
use core::alloc::Layout;
use core::mem;
@badrbouslikhin
badrbouslikhin / scpa
Created July 30, 2018 07:53
Copy a file from B to A while logged into A #SSH
scp username@b:/path/to/file /path/to/destination
@badrbouslikhin
badrbouslikhin / scpb
Created July 30, 2018 07:53
Copy a file from B to A while logged into B #SSH
scp /path/to/file username@a:/path/to/destination