This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg -re -analyzeduration 100M -probesize 100M -stream_loop -1 -i <input_file.ts> \ | |
-vf setdar=16/9 -f decklink -pix_fmt uyvy422 -format_code pal "DeckLink Mini Monitor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xrandr --newmode "3440x1440_44.00" 299.75 3440 3664 4024 4608 1440 1443 1453 1479 -hsync +vsync | |
xrandr --addmode HDMI-1-1 3440x1440_44.00 | |
xrandr --output eDP-1-1 --off --output HDMI-1-1 --mode 3440x1440_44.00 --pos 0x0 --rotate normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /proc/sys/net/core/rmem_max | |
212992 | |
$ sudo sysctl -w net.core.rmem_max=26214400 | |
net.core.rmem_max = 26214400 | |
$ cat /proc/sys/net/core/rmem_max | |
26214400 | |
./srt-live-transmit "udp://:4200?rcvbuf=67108864" srt://192.168.0.10:4200 -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/nginx/snippets/graylog_self-signed.conf | |
ssl_certificate /etc/ssl/certs/graylog-selfsigned.crt; | |
ssl_certificate_key /etc/ssl/private/graylog-selfsigned.key; | |
#################################################################################### | |
$ cat /etc/nginx/snippets/graylog_ssl-params.conf | |
ssl_protocols TLSv1.2 TLSv1.3; | |
ssl_prefer_server_ciphers on; | |
ssl_dhparam /etc/nginx/dhparam.pem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Configuration Variables | |
set "ifName=Ethernet 2" | |
set "ipAddress=10.88.167.35" | |
set "subnetMask=255.255.255.240" | |
set "vlanID=702" | |
:: set "defaultGateway=x.x.x.x" | |
:: set "primaryDNS=x.x.x.x" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration { | |
show-icons: false; | |
sidebar-mode: false; | |
} | |
* { | |
// Default bg is transparent. | |
background-color: transparent; | |
// Default text is white | |
text-color: white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Created by Paul Colby (http://colby.id.au) | |
# Further edited by Georgi Stoyanov (http://gstoyanov.com), no rights reserved ;) | |
PREV_TOTAL=0 | |
PREV_IDLE=0 | |
# Determinining the number of CPU cores | |
CPU_CORES=$(nproc --all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The join command requires smcroute package to be installed | |
You can install it by executing: | |
sudo apt install smcroute | |
sudo smcroutectl join <interface> <mc_address> | |
where: | |
1. <interface> is the interface on which the MC traffic should be present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INT=2; RXDIR=/sys/class/net/eth0/statistics/rx_bytes; TXDIR=/sys/class/net/eth0/statistics/tx_bytes; RXSTART=$(cat $RXDIR); TXSTART=$(cat $TXDIR); sleep $INT; RXEND=$(cat $RXDIR); TXEND=$(cat $TXDIR); RXBPS="$(((RXEND-RXSTART)/INT))"; TXBPS="$(((TXEND-TXSTART)/INT))"; echo "$RXBPS" "$TXBPS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
import csv | |
import os | |
import time | |
from datetime import datetime | |
from pathlib import Path | |
#### Variables definition |
NewerOlder