Skip to content

Instantly share code, notes, and snippets.

View euppi98's full-sized avatar
🏠
Working from home

Eugene Platonov euppi98

🏠
Working from home
View GitHub Profile
@nitred
nitred / optimal_mtu.md
Last active March 4, 2026 16:22
Wireguard Optimal MTU

About

  • I faced bandwidth issues between a WG Peer and a WG server. Download bandwidth when downloading from WG Server to WG peer was reduced significantly and upload bandwidth was practically non existent.
  • I found a few reddit posts that said that we need to choose the right MTU. So I wrote a script to find an optimal MTU.
  • Ideally I would have liked to have run all possible MTU configurations for both WG Server and WG Peer but for simplicity I choose to fix the WG Server to the original 1420 MTU and tried all MTUs from 1280 to 1500 for the WG Peer.

Testing

  • On WG server, I started an iperf3 server
  • On WG peer, I wrote a script that does the following:
    • wg-quick down wg0
  • Edit MTU in the /etc/wireguard/wg0.conf file
@ezracb
ezracb / Download a Windows 10 ISO.md
Created June 24, 2020 01:04 — forked from CHEF-KOCH/Download a Windows 10 ISO.md
Download a Windows 10 ISO directly from Microsoft (without the media creation tool)
@tynrare
tynrare / delete-all.js
Last active October 20, 2023 16:16
VK delete all tracks
//Сюда вписать через запятую названия своих треков, которые хотите сохранить
//Например: ["Цвет настроения", "За любовь", "Каждый раз"]
// Кстати Цвет настроения сохранится и черный и синий :D
var filter = ["Your-favorite-track-name"];
//scroll down at max
function scrollDown(callback){
let scroll = document.body.scrollHeight;
let lastScroll = scroll;
window.scrollTo(0,document.body.scrollHeight);
@kremalicious
kremalicious / tor-openvpn.sh
Last active December 9, 2025 18:37
Install and configure Tor as proxy for all OpenVPN server traffic
# what we want:
# client -> OpenVPN -> Tor -> Internet
# Install & configure OpenVPN
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04
# assumed OpenVPN configuration
# 10.8.0.1/24-Subnet
# tun0-Interface
@oguzoldev
oguzoldev / change-apple-osx-dock-size-from-apple-terminal.md
Created May 3, 2016 20:05
Change Apple OS X Dock size from Apple Terminal

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 32; killall Dock

32 is icon size