Skip to content

Instantly share code, notes, and snippets.

# Main
rtsp://user:pass@ip:554/streaming/channels/101
# Sub
rtsp://user:pass@ip:554/streaming/channels/102
# H264
rtsp://user:pass@ip:554/h264_stream
rtsp://user:pass@ip:554/H264/ch1/main/av_stream
rtsp://user:pass@ip:554/H264/ch1/sub/av_stream
@maynero
maynero / file.sh
Last active November 4, 2023 16:53
Disable bypass on Silicom PE210G2BPI40-T
# Tested on Debian Buster
# Install
apt-get install linux-headers-$(uname -r)
apt-get install build-essential
# Compile bpctl
# Use https://github.com/redBorder/bpctl if you're able to, otherwise download directly from Silicom
curl -O https://www.silicom-usa.com/download/?action=ftp://drivers:[email protected]/drivers/PxGxBP-SD_Linux.zip
unzip PxGxBP-SD_Linux.zip
@maynero
maynero / enable_docker_remote_api.sh
Created August 8, 2021 21:22
Enable docker remote API using bash
#!/bin/bash
# Absolute path of docker systemd file
dockersystemd='/lib/systemd/system/docker.service'
# Retrieve the line number of the ExecStart
execstartline=$(grep -n 'ExecStart=' ${dockersystemd} | cut -f1 -d':')
# New value of the ExecStart
newexecstart='ExecStart=/usr/bin/dockerd -H fd:// -H=tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock'
@maynero
maynero / README.md
Last active February 21, 2021 01:14
Inject VirtIO drivers to WDS boot image

Inject VirtIO drivers to WDS boot image

This assumes that you already have (and know) the following:

  1. Windows 10 installation iso
  2. Windows ADK - https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install
  3. VirtIO windows drivers iso - https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md

Procedures

  1. Extract the boot.wim (to a location easily accessible, C:\Temp) from windows installation media. It should be located at the sources directory inside the iso file.
  2. Open Deployment and Imaging Tools Environment as administrator. If you don't see this is your program list then you probably don't have Windows ADK installed or you didn't include the neccessary components during installation.
@maynero
maynero / README.md
Last active May 17, 2022 12:30
Install Windows 10 from iSCSI using iPXE

Install Windows 10 from iSCSI using iPXE

This assumes that you already have (and know) the following:

  1. iPXE
  2. HTTP server (or a TFTP server)
  3. iSCSI target
  4. Windows 10 ISO file
  5. A client that can boot via PXE

Prepare your iSCSI Target