Skip to content

Instantly share code, notes, and snippets.

@ianmackinnon
ianmackinnon / Client code - receive and display stream
Created February 27, 2020 16:22
Capture Nikon D90 with `gphoto2` and stream from Raspberry Pi over RTP using GStreamer
port=5000
gst-launch-1.0 -e -v udpsrc port=${port} ! \
application/x-rtp, media=video, encoding-name=H264 ! \
rtph264depay ! \
queue ! \
avdec_h264 ! \
autovideosink sync=false
> cura
2017-01-26 14:23:26,682 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin ConsoleLogger
2017-01-26 14:23:26,691 - INFO - CuraEngineBackend.CuraEngineBackend.__init__ [64]: Found CuraEngine at: /usr/bin/CuraEngine
2017-01-26 14:23:26,691 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin CuraEngineBackend
2017-01-26 14:23:26,694 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin WireframeView
2017-01-26 14:23:26,697 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin SimpleView
2017-01-26 14:23:26,699 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin OBJReader
2017-01-26 14:23:26,702 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin OBJWriter
2017-01-26 14:23:26,704 - INFO - UM.PluginRegistry.loadPlugin [100]: Loaded plugin STLWriter
2017-01-26 14:23:26,707 - WARNING - STLReader.STLReader.<module> [26]: Could not find numpy-stl, falling back to slower code.
@ianmackinnon
ianmackinnon / 2011.csv
Last active December 31, 2015 08:29 — forked from mbostock/.block
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
{
"AD": 83608,
"AE": 400502660,
"AF": 52981686,
"AG": null,
"AL": 742884,
"AM": 19590,
"AO": 162001,
"AR": 7973424,
"AT": 47959571,
@ianmackinnon
ianmackinnon / match.c
Created August 8, 2012 12:01
C Regex multiple matches and groups example
# gcc -Wall -o match match.c && ./match
#
#include <stdio.h>
#include <string.h>
#include <regex.h>