Skip to content

Instantly share code, notes, and snippets.

View lorentedford's full-sized avatar

Loren Tedford lorentedford

View GitHub Profile
@lorentedford
lorentedford / linux_tune.md
Created December 29, 2022 04:02 — forked from matyunin/linux_tune.md
Linux network performance tuning

###Tuning

$ netstat -nao | grep 8080 | grep TIME_WAIT | wc -l

To achieve the top most performance you should tune the source server system limits:

net.ipv4.tcp_max_tw_buckets = 65536
@lorentedford
lorentedford / speedomerter.sh
Last active December 25, 2019 18:24
speedometer.sh
#!/bin/bash
#Run command below first then comment it out once installed..
sudo apt-get update && sudo apt-get install speedometer
# Run command: ip addr
# To find what ethernet ports you wish to watch example show below
# lo = Local Traffic eth0= Is the ethernet port traffic
# For more information visit http://excess.org/speedometer/
#Fix the below command to reflect the correct interface locations.
#speedometer -l -r lo -t eth0 -m $(( 1024 * 1024 * 3 / 2 ))
@lorentedford
lorentedford / ehcp-install.sh
Last active December 7, 2019 09:59
EHCP Force Installation Ubuntu 18.04 LTS
#!/bin/bash
sudo apt-get install software-properties-common -y
sudo add-apt-repository universe -y
sudo apt update
sudo apt-get install wget subversion curl -y
wget -O "ehcpforce_stable_snapshot.tar.gz" -N https://github.com/earnolmartin/EHCP-Force-Edition/releases/download/1.1.1.1/ehcpforce_stable_snapshot.tar.gz
tar -zxvf "ehcpforce_stable_snapshot.tar.gz"
cd ehcp
sudo bash install.sh
@lorentedford
lorentedford / Example-Nginx.conf
Last active August 17, 2020 18:18 — forked from afriza/install-nginx-rtmp-module.sh
Install NGINX RTMP module with HLS support on Ubuntu 18.04
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
load_module modules/ngx_rtmp_module.so;
load_module modules/ngx_http_vod_module.so;
events {