Skip to content

Instantly share code, notes, and snippets.

View steveseguin's full-sized avatar
🎯
Focusing

Steve Seguin steveseguin

🎯
Focusing
View GitHub Profile
{
"ping":"pong",
"jcalado":"jcalado is awesome",
"python":"python > node"
}
.tile {
max-width:200px !important;
}
video {
max-width:200px !important;
}
@steveseguin
steveseguin / emojis.json
Created June 6, 2021 21:56 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@steveseguin
steveseguin / Dockerfile
Created August 7, 2021 16:48 — forked from tobiasfriden/Dockerfile
Gstreamer WebRTC python demo working Dockerfile
FROM maxmcd/gstreamer:1.14-buster
WORKDIR /usr/src
RUN apt-get update && apt-get install -y python3-pip \
pkg-config \
libcairo2-dev \
gcc \
python3-dev \
libgirepository1.0-dev \
@steveseguin
steveseguin / janusvideoroom.py
Created August 7, 2021 18:07 — forked from saket424/janusvideoroom.py
to publish to videoroom 1234 as user gstwebrtcdemo use 'python3 janusvideoroom.py --server wss://janus.example.com:8989 gstwebrtcdemo'
import random
import ssl
import websockets
import asyncio
import os
import sys
import json
import argparse
import string
from websockets.exceptions import ConnectionClosed
<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
@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
@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/")
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 / 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