Skip to content

Instantly share code, notes, and snippets.

View RikiReal's full-sized avatar
🚀
Thinking in portals

Riki RikiReal

🚀
Thinking in portals
View GitHub Profile
@sreimers
sreimers / gstreamer.py
Created July 8, 2013 20:35
Gstreamer 1.0 Python Debug
import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst
Gst.debug_set_active(True)
Gst.debug_set_default_threshold(3)
GObject.threads_init()
Gst.init(None)
@jasonk000
jasonk000 / nodejs-sample.js
Last active September 13, 2023 20:31
Using x.509 certs with JWS/JWT/JWK
#!/usr/bin/env node
import fs from 'fs'
import jose from 'node-jose'
import pem from 'pem'
async function run () {
try {
// keystore to stick our node-jose keys before we do signing
let keystore = jose.JWK.createKeyStore()
@CoRfr
CoRfr / build-ipxe-rpi.sh
Last active April 4, 2023 15:12
Build iPXE for Raspberry Pi (4)
#!/bin/bash -xe
# To build in 64bit mode
if ! command -v aarch64-linux-gnu-gcc; then
sudo apt-get install gcc-aarch64-linux-gnu
fi
if ! command -v mformat; then
sudo apt-get install mtools
fi
@Paraphraser
Paraphraser / TheRetainFlag.md
Created September 18, 2020 02:42
MQTT and the retain flag

Tutorial: MQTT and the retain flag

Assumptions and setup

This tutorial assumes:

  • a single computer (like a Raspberry Pi)
  • MQTT broker (like Mosquitto) running
  • the mosquitto_pub and mosquitto_sub commands are available.
@shift
shift / rpi4_eufi_booting_flatcar.md
Created December 2, 2020 09:21
UEFI/iPXE booting Raspberry Pi for Flatcar Linux

UEFI/iPXE booting Raspberry Pi for Flatcar Linux

Download and compile the following https://github.com/pftf/RPi4.git. I made the following change to edk2-platforms to always enable 3GB RAM+ as TFTP booting this seems to cause issues with it remembering the options.

diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4/RPi4.dsc
index c481c35342..4b495b1fe8 100644
--- a/Platform/RaspberryPi/RPi4/RPi4.dsc
+++ b/Platform/RaspberryPi/RPi4/RPi4.dsc
@@ -495,7 +495,7 @@