Blacklist r8169 kernel driver for being loaded
echo blacklist r8169 >> /etc/modprobe.d/blacklist-r8169.conf
Once all of this is completed we are going to update our GRUB to have some specific kernel parameters for our realtek driver
#!/usr/bin/env perl | |
# multipcap.pl | |
# License MIT + Any article (blog, site, documentation, etc) | |
# should link back to this page. | |
# Link : https://gist.github.com/mdeweerd/4bf3375b2ec56b5492a7a4695e19e92e | |
use strict; | |
#use File::PCAP::Reader; # Needed to read the pcap file | |
#use File::PCAP::Writer; # Needed to write the pcap file |
#!/bin/perl | |
# SCRIPT TO CONVERT TEXT LOG TO PCAP FILE | |
# READS DATES FROM LOG FILE | |
# WHEN READING FROM PIPE (UNTESTED) WITHOUT DATES, | |
# THE CURRENT TIMESTAMP IS USED. | |
# | |
# Potential parameters to the script: | |
# Parameter ending in ".log" is the log input file | |
# Parameter ending in ".pcap" is the log output file | |
# Digit from 0 to 7 is the log index. |
#!/usr/bin/env python3 | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# Salamandar <[email protected]> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return. Félix Piédallu | |
# ---------------------------------------------------------------------------- | |
import sys |
function createSilence(seconds = 1) { | |
const sampleRate = 8000; | |
const numChannels = 1; | |
const bitsPerSample = 8; | |
const blockAlign = numChannels * bitsPerSample / 8; | |
const byteRate = sampleRate * blockAlign; | |
const dataSize = Math.ceil(seconds * sampleRate) * blockAlign; | |
const chunkSize = 36 + dataSize; | |
const byteLength = 8 + chunkSize; |