Skip to content

Instantly share code, notes, and snippets.

View geofmureithi-zz's full-sized avatar

Njuguna Mureithi geofmureithi-zz

View GitHub Profile
@geofmureithi-zz
geofmureithi-zz / lib.rs
Last active May 11, 2020 10:38
Actix + Postgres Notification
pub mod notify {
use actix::prelude::*;
use serde::{Deserialize, Serialize};
use futures::{
channel::mpsc, future, stream, StreamExt, TryStreamExt, FutureExt, TryFutureExt
};
use tokio_postgres::{
tls::NoTls, AsyncMessage, Config, Notification

Signing a custom kernel for Secure Boot

Mainly From: https://github.com/jakeday/linux-surface/blob/master/SIGNING.md

Instructions are for ubuntu, but should work similar for other distros, if they are using shim and grub as bootloader. If your distro is not using shim (e.g. Linux Foundation Preloader), there should be similar steps to complete the signing (e.g. HashTool instead of MokUtil for LF Preloader) or you can install shim to use instead. The ubuntu package for shim is called shim-signed, but please inform yourself on how to install it correctly, so you do not mess up your bootloader.

@geofmureithi-zz
geofmureithi-zz / Counter.riot
Last active July 31, 2020 20:11
Counter Example using rust and riot.js
<app>
<script type="rust" module="counter">
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
pub struct CounterState {
counter: i32
}
impl Default for CounterState {