Skip to content

Instantly share code, notes, and snippets.

View p2ndemic's full-sized avatar

p2ndemic

View GitHub Profile
@p2ndemic
p2ndemic / ffmpeg-4.1.5_configure_options.txt
Created May 18, 2025 09:51 — forked from omegdadi/ffmpeg-4.1.5_configure_options.txt
A list of all the configuration options available when compiling FFMpeg v4.1.5
~/Downloads/ffmpeg-4.1.5 $ ./configure --help
Usage: configure [options]
Options: [defaults in brackets after descriptions]
Help options:
--help print this message
--quiet Suppress showing informative output
--list-decoders show all available decoders
--list-encoders show all available encoders
--list-hwaccels show all available hardware accelerators

XDG - Base Directory Specification

Directories

Base

The intended use-case for BaseDirectories is to query the paths of user-invisible standard directories that have been defined according to the conventions of the operating system the library is running on.

@p2ndemic
p2ndemic / linux-optimize.sh
Created April 16, 2025 02:49 — forked from qzydustin/linux-optimize.sh
Optimize Linux Network Performance
#!/bin/sh
# Set kernel parameters in /etc/sysctl.conf
cat << EOF > /etc/sysctl.conf
# Increase maximum number of open file descriptors
fs.file-max = 1000000
# Increase maximum number of inotify instances per user
fs.inotify.max_user_instances = 8192
@p2ndemic
p2ndemic / sysctl.conf
Last active April 16, 2025 04:47 — forked from jult/sysctl.conf
[Debian 12 update!] sysctl config for linux server with 32 GB DDR RAM or more, SSD and 1Gbe (or faster) NIC
# IPv6 Configuration
# -> note that I have disabled ip6 for our internet-connection (wan/eth0) because
# -> my upstream/ISP (still) does not do IPv6. The rest, even localhost, does ip6 stuff.
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.wan.disable_ipv6 = 1
# Packet Forwarding
@p2ndemic
p2ndemic / linux-networking-tools.md
Created April 16, 2025 02:42 — forked from miglen/linux-networking-tools.md
Linux networking tools

List of Linux networking tools

netstat (ss)

Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

Sample output:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED