Skip to content

Instantly share code, notes, and snippets.

@galexrt
galexrt / crio.ini
Last active May 26, 2019 21:55
My current CRI-O config file. The first file name is actually `crio.conf`, the gist file extension is `ini` to allow for the "correct" syntax highlighting to be applied. The second file is `/etc/containers/policy.json`. See https://edenmal.moe/2018/03/09/CRI-O-Container-Linux-How-to-Install/#Step-4-Configure-CRI-O.
# The CRI-O configuration file specifies all of the available configuration
# options and command-line flags for the crio(8) OCI Kubernetes Container Runtime
# daemon, but in a TOML format that can be more easily modified and versioned.
#
# Please refer to crio.conf(5) for details of all configuration options.
# CRI-O reads its storage defaults from the containers-storage.conf(5) file
# located at /etc/containers/storage.conf. Modify this storage configuration if
# you want to change the system's defaults. If you want to modify storage just
# for CRI-O, you can change the storage configuration options here.
@FutureSharks
FutureSharks / raspberrypi-picamera-motion-detection.py
Last active April 18, 2025 10:02
A simple example of using the Raspberry Pi Camera Module and python picamera for motion detection
#!/usr/bin/python
import picamera
import cv2
import io
import numpy as np
import imutils
camera = picamera.PiCamera()
@ytti
ytti / xr2pcap.rb
Last active January 18, 2021 01:52
XR NPU counter to pcap
#!/usr/bin/env ruby
## 1) capture data => monitor np counter MDF_PUNT_POLICE_DROP np0 count 25 location 0/2/CPU0
##
## 2) You'll need 'text2pcap' => sudo apt-get install wireshark-common
##
## 3) Run with file as argument:
## [ytti@lintukoto ~/tmp/ios-xr-npu-monitor-pcap]% ./xr2pcap.rb r04.miamfl02.us.bb.MDF_PUNT_POLICE_DROP.ioscap
## Input from: r04.miamfl02.us.bb.MDF_PUNT_POLICE_DROP.txt
## Output to: r04.miamfl02.us.bb.MDF_PUNT_POLICE_DROP.pcap