Skip to content

Instantly share code, notes, and snippets.

View mrladeia's full-sized avatar
🎯
Focusing

Marcos Rodrigo Ladeia mrladeia

🎯
Focusing
View GitHub Profile
@mrladeia
mrladeia / hyperv-bug.bat
Created November 10, 2021 15:04
Bug Hyper-V Conexão de internet lenta
Bug Hyper-V Slow internet speed
netsh int tcp set global autotuninglevel=disabled
Then type:
netsh int tcp set global autotuninglevel=normal
@mrladeia
mrladeia / 01-netcfg.yaml
Last active March 26, 2024 20:49
BuyVM Private IP / ipv6 / Netplan Config Ubuntu 22.04 /etc/netplan/01-netcfg.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: no
dhcp6: no
addresses:
- 45.61.1xx.xxx/24 #WAN IP
- 2605:6400:40:xxxx::/48 #IPv6 WAN
nameservers:
@mrladeia
mrladeia / cf-purge.php
Last active May 21, 2025 18:58
Clear Cloudflare cache Chevereto #chevereto #cloudflare
<?php
/*
Cloudflare's purge directly depends on what your url looks like, in my case it's an example: https://s1.domain.com/Akd3X.jpg
That is, with the name of the encoded image.
Within my script I had to place a function to encode the image because the deleted image table does not have its code encoded.
I quickly made this script a while ago, it doesn't follow any good programming practices.