Skip to content

Instantly share code, notes, and snippets.

View mrladeia's full-sized avatar

Marcos Rodrigo Ladeia mrladeia

View GitHub Profile
mrladeia / cf-purge.php
Last active June 12, 2024 15:06
Clear Cloudflare cache Chevereto
Cloudflare's purge directly depends on what your url looks like, in my case it's an example:
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.
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
version: 2
dhcp4: no
dhcp6: no
- 2605:6400:40:xxxx::/48 #IPv6 WAN
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 / AutoClick_Coordenada.ahk
Last active June 13, 2022 14:22
Auto Click - Script para clicar em uma coordenada X,Y utilizando AutoHotKey. Script for clicking an X,Y coordinate using AutoHotKey
;Auto Click - Script para clicar em uma coordenada X,Y utilizando AutoHotKey
;Arquivo Config.ini de exemplo:
;XY1=1631, 486
;XY2=1631, 568
;XY3=1631, 650
mrladeia / youtube-dl
Last active July 21, 2021 15:37
sem merge
youtube-dl.exe -f best <url>
merge com ffmpeg
youtube-dl -f bestvideo+bestaudio <url>
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 <url>
youtube-dl.exe -f bestvideo+bestaudio --merge-output-format mp4 -a list.txt
mrladeia / Alternador.ahk
Last active January 12, 2021 04:21
Alternador de Janelas - Script para alternar janelas utilizando AutoHotKey. Switch windows using AutoHotKey
;Alternador de Janelas - Script para alternar janelas utilizando AutoHotKey
;Switch windows using AutoHotKey
GroupAdd, AllWindows
GroupActivate, Allwindows, R
;Arquivo Config.ini de exemplo:
mrladeia /
Created February 28, 2020 04:15
Upload python script example - Chevereto -
import requests
url = ""
payload = {'key': 'YOUR_KEY','format': 'json'}
files = [
('source', open('imagem.png','rb'))
mrladeia /
Last active May 27, 2024 11:22
Iptables to Oracle Cloud port 80 and 443 open

IPTABLES to Oracle Cloud port 80 and 443 open

If you need to open up ports 80 and 443, on file /etc/iptables/rules.v4 just add

-A INPUT -p tcp -m state --state NEW -m multiport --dports 80,443 -j ACCEPT

directly below

if ($("input#mobileNumber").length) {
var input = document.querySelector("input#mobileNumber");
window.intlTelInput(input, {
//initialCountry: "br",
autoPlaceHolder: "agressive",
utilsScript: "/vendors/js/tel-input/js/utils.js",
initialCountry: "auto",
preferredCountries: ["br", "pt", "us"],
mrladeia /
Created September 16, 2018 18:12
Lista de excessão Iptables
iptables -A INPUT -p TCP --dport (port) -s A,B -j ACCEPT
iptables -A INPUT -p TCP --dport (port) -j DROP
After any days....... I add IP C
iptables -I INPUT -p tcp --dport (port) -s C -j ACCEPT
Or add in line 1
iptables -I 1 INPUT -p tcp --dport (port) -s C -j ACCEPT
service iptables save