Skip to content

Instantly share code, notes, and snippets.

Program options:
-h [ --help ] This help message
--inConnect arg Input connector. Format: host:port
--inConnectId arg Input connector with ID. Format: host:port:id
--inServer arg Input server. Format: port
--inServerId arg Input server with Id. Format: port:id
--inServerUdp arg Input udp server. Format: port
--inSerial arg Input serial. Format: port[:speed[:flow_control]]
FlowControl: none,software,hardware
--outConnect arg Output connector. Format: type:host:port
https://github.com/tvheadend/tvheadend/pull/1212/files
src/input/mpegts/iptv/iptv_private.h
#include "udp.h"
#include "tvhpoll.h"
#define IPTV_BUF_SIZE (300*188)
#define IPTV_PKTS 32
#define IPTV_BUF_SIZE (9000*188)
@nerdegem
nerdegem / ffmpeg.txt
Created April 4, 2023 18:25
Making GIFs with FFMPEG
https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
How to make GIFs with FFMPEG
March 29, 2018 by Collin Burger
INTRODUCTION
To follow along, download media files here: https://github.com/cyburgee/ffmpeg-guide
@nerdegem
nerdegem / vLanESXI
Created April 29, 2023 17:19
vLans on ESXi, Ubiquiti and pfSense
A memory dump for making vLan routing working on ESXi, Ubiquiti switches (and Wifi) and pfSense.
ESXi
In ESXi, for the interface(s) you want to pass ALL Vlan traffic, Within the assigned PortGroup object, set the VLAN to 4095
Ubiquiti
Do not set the port connected to ESXi to Trunked.
Just create a new VLAN number (anything other than 0,1 or 4095) and assign the connected interface to "T" for Tagged
@nerdegem
nerdegem / hetznervmware.txt
Created August 5, 2023 11:36
Using Hetzner recovery to install VMWare ESXi without the spider console*
Taking inspiration from this great post https://docs.j7k6.org/vmware-esxi-hetzner-install-kvm-linux/ to get VMWare installed without requiring the SpiderKVM service. Howver, for version 7, the installer requires to see a NIC within the environment so the command needs to be tweaked a little...
kvm -machine pc-i440fx-2.1 \
-cpu host \
-smp cpus=4 \
-m 4096 \
-drive format=raw \
-hda /dev/sdc \
-netdev tap,id=net0 \
-device e1000e,netdev=net0 \
@nerdegem
nerdegem / glinet_overlay
Created August 20, 2023 20:29
Configuring a GL-iNet for Overlay
Taken from: https://forum.gl-inet.com/t/extroot-configuration/27421
These were the only commands that seemed to work:
I used these commands to configure it, it’s working fine so far, just want to check I won’t run into any issues down the line:
opkg update
opkg install block-mount kmod-fs-ext4 e2fsprogs
DEVICE="$(sed -n -e "/\s\/overlay\s.*$/s///p" /etc/mtab)"
uci -q delete fstab.rwm
@nerdegem
nerdegem / ffmpeg_full_options.txt
Created September 16, 2023 17:11
FFMPEG full options available on my build using ffmpeg -h full
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Getting help:
-h -- print basic options
-h long -- print more options
-h full -- print all options (including all format and codec specific options, very long)
-h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf
See man ffmpeg for detailed description of the options.
@nerdegem
nerdegem / pingtest from Windows
Created November 1, 2023 10:23
Ongoing Ping Test in Windows
Found this great article on how to continuously ping and monitor in windows from https://community.spiceworks.com/how_to/154193-ping-with-timestamp-and-log
Essentially
1) Open a PowerShell
2) Record the session with
Start-Transcript -path C:/Script/PingLog.txt -Append
3) Run the ping - slighly amended from the reference one, in that this adds in a ping packet size of 1492 bytes (adjust for MTU)
Ping.exe -t 1.1.1.1 -l 1492 | ForEach {"{0} - {1}" -f (Get-Date),$_}
4) Check/review the log file.
@nerdegem
nerdegem / debian
Created January 4, 2024 23:49
Temporarily fixing a debian package that is broken because you ignored depends.
This will probably break something down the line, but to get you out of a bind, you can force a package depends using this hackjob.
edit /var/lib/dpkg/status,
find the package with the broken dependencies
edit the Depends: line to stop the package complaining.
I assume that will be overwritten the next time the package is updated, but that's exactly what i want.
@nerdegem
nerdegem / frigate.yml
Created February 7, 2024 23:35
Working Frigate Config
mqtt:
host: 10.1.2.3
user: mqttuser
password: password
database:
path: /db/frigate.db
detectors:
coral1: