Skip to content

Instantly share code, notes, and snippets.

View steveseguin's full-sized avatar
🎯
Focusing

Steve Seguin steveseguin

🎯
Focusing
View GitHub Profile
@steveseguin
steveseguin / combine.ps1
Created August 1, 2024 12:09
Concatenate sequential files into a single file. Windows Powershell. Intended for VDO.Ninja users.
# Check if a filename was provided
if ($args.Count -ne 1) {
Write-Host "Usage: .\script.ps1 <filename.webm>"
exit 1
}
# Get the full path of the base filename
$baseFilename = Resolve-Path $args[0]
$workingDirectory = Split-Path $baseFilename -Parent
$baseFileNameWithoutExtension = [System.IO.Path]::GetFileNameWithoutExtension($baseFilename)
@steveseguin
steveseguin / documentation.md
Created July 28, 2024 12:35
vdo.ninja documentation snapshot july 7th
description
Understanding URL parameters and custom settings

Advanced Options (URL Parameters)

Overview

VDO.Ninja is a tool that can be seen as a mediator, negotiating a direct connection between a publishing device and a viewing device (such as OBS [Open Broadcaster Software]). There are generally two links involved; one to push (publish) and one to pull (view), although links can be made to do both at the same time.

class Gstreamer < Formula
desc "Development framework for multimedia applications - modified to include WebRTC support"
homepage "https://gstreamer.freedesktop.org/"
license all_of: ["LGPL-2.0-or-later", "LGPL-2.1-or-later", "MIT"]
revision 2
stable do
url "https://gitlab.freedesktop.org/gstreamer/gstreamer/-/archive/1.22.8/gstreamer-1.22.8.tar.gz"
sha256 "ebe085820a32f135d9a5a3442b2cb2238d8ce1d3bc66f4d6bfbc11d0873dbecc"

compile the klipper firmware, making the changes to the config as needed first: https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller

run the nano convert python script in the script folder on the generated bin file; rename to Robin_nano_v3.bin

put it on a fat32 16gb uSD card and put it into the MKS baord and boot it up; give it 15 minutes

check the uSD content's after; the bin should be renamed to .cur, otherwise it didn't work.

If it did't work download source for openocd; build/install

EXHIBIT D
GIUFFRE VS. MAXWELL
Deposition
VIRGINIA GIUFFRE
05/03/2016
Agren Blando Court Reporting & Video, Inc.
216 16th Street, Suite 600
Denver Colorado, 80202
303-296-0017
Page 1
@steveseguin
steveseguin / run.py
Created December 21, 2023 18:25
Blogger to Markdown (github)
# pip install xmltodict markdownify
import xmltodict
import markdownify
import os
import requests
from urllib.parse import urlparse
import re
import time
Here is a recipe for a dish called "faux-rogies" that is inspired by pierogies but uses a few different ingredients:
Faux-rogies
Ingredients:
1 cup all-purpose flour
1/2 cup water
1/2 tsp salt
1/4 cup grated cheddar cheese
@steveseguin
steveseguin / gist:412e5c5087e5d4d03a1c157bb103ee19
Created January 5, 2023 08:42
How to connect to MongoDB with Python
To connect to MongoDB with Python, you will need to use a third-party library such as PyMongo. PyMongo is a Python distribution containing tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
Here's an example of how you can use PyMongo to connect to a MongoDB database and perform some basic operations:
Copy code
import pymongo
# Connect to the database
client = pymongo.MongoClient("mongodb://localhost:27017/")
@steveseguin
steveseguin / UPDATES
Last active April 21, 2025 15:38
Discord #update channel mirrored output
Daily progress updates and nightly new features for VDO.Ninja can be view at:
https://updates.vdo.ninja
You can also Join the Discord server at https://discord.vdo.ninja and follow the channel #updates
<html>
<body>
<div id="results" style="overflow:scroll;max-height:300px;">
starting...
</div>
<script> // https://jsfiddle.net/steveseguin/0t3ayvk8/31/
var connectionID = Math.random()*100000001; // we need to create a stream ID; it needs to be secure/unique, up to ~50 chars.
function RecvDataWindow(){
var iframe = document.createElement("iframe");
iframe.src = "https://vdo.ninja/?view="+connectionID+"&cleanoutput"; // See the info at docs.vdo.ninja for options