这是indexloc提供的服务,不要输入任何密码
Skip to content

Instantly share code, notes, and snippets.

@unitycoder
unitycoder / local-stream-server-win10.md
Last active July 26, 2025 20:52
Local RTMP Stream Server for Windows

https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmfp-server-using-monaserver.153/ (copied here as a backup)

This article is inspired of the great guide of How to set up your own private RTMP server using nginx. https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

MonaServer is a tiny and scalable open source server which provide protocols RTMFP, RTMP, RTMPE, WebSocket and HTTP. Server applications are written in lua and clients just need to support one of these protocols.

The interest of MonaServer here is the RTFMP broadcast feature that avoid congestion (because it is a UDP protocol) unlike RTMP.

This guide will presents you an easy way to broadcast a video with OBS over RTMFP. Don't worry, you will not need to configure or write any code here :)

@todbot
todbot / kicad-diff-pcb.sh
Last active July 26, 2025 20:50
Git diff for Kicad PCB layouts
#!/bin/bash
#
# kicad-diff-pcb -- Git diff for Kicad PCB layouts
# 22 Jul 2025 - @todbot / Tod Kurt
#
# Install steps:
# 1. Make sure `kicad-cli` is in your PATH
# 2. Save this file somewhere in your PATH, I prefer "~/bin"
# 3. Make this script executable: "chmod +x kicad-diff-pcb"
# 4. Add the following to your ~/.gitconfig
@GNARC0TICS
GNARC0TICS / dark-light-mode-toggle.markdown
Created April 26, 2025 22:52
Dark / Light mode toggle
@Lh4cKg
Lh4cKg / mongodb_backup.py
Created January 22, 2020 07:50
MongoDB Dump And Restore Database With Python PyMongo Driver
import bson
from pymongo import MongoClient
def dump(collections, conn, db_name, path):
"""
MongoDB Dump
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no

Proxmox Complete Microsegmentation with OPNsense

Also posted on a blog.

Goal

The goal state for this setup is:

  • OPNsense acts as a core firewall and regulates access between all VMs.
  • All VMs share the same bridge interface to reduce setup needed for each VM.
@cbmeeks
cbmeeks / c64.asm
Created August 30, 2018 12:14
Commented C64 Kernal
;************************************************************************************
;************************************************************************************
; This file was included in the Project 64 Repository after all efforts to contact
; Lee Davison, the original author, were proven unsuccessful. The inclusion is meant
; to honour his sterling work on providing us with the very best document on every
; bit of the Commodore 64's firmware content. We want this to remain available to
; the public and allow other members to benefit from Lee's original, excellent job.
;************************************************************************************
; $VER:C64LD11.S, included on 2014-11-12
;************************************************************************************
@JonnyWong16
JonnyWong16 / select_tmdb_poster.py
Last active July 26, 2025 20:35
Selects the default TMDB poster and art for items in a Plex library if no poster/art is selected or the current poster/art is from Gracenote.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Description: Selects the default TMDB poster and art for items in a Plex library
if no poster/art is selected or the current poster/art is from Gracenote.
Author: /u/SwiftPanda16
Requires: plexapi
Usage:
* Change the posters for an entire library:
@pressleydavid
pressleydavid / Scatterplot of miR-122 Fold Change from baseline.vl.json
Last active July 26, 2025 20:35
Scatterplot of miR-122 Fold Change from baseline (notional DMD data for ATF)
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Scatterplot of miR-122 Fold Change from baseline",
"data": {
"name": "biomarkers"
},
"resolve": {
"scale": {
"color": "independent"
}
@NotKyon
NotKyon / 0.md
Created March 16, 2025 21:58
Odin SDL3 GPU + Slang Example