Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Loading...

Pedro Fernandes djprmf

🤔
Loading...
View GitHub Profile
View Toot all the world
/* Toot */
.compose-form__publish-button-wrapper > .button.button--block {
font-size: 0 !important;
}
.compose-form__publish-button-wrapper > .button.button--block::after {
content: "Toot!";
text-transform: none;
font-size: 15px;
position: relative;
View DNSBench.ini
192.168.0.1 Non-routable local internet address
1.0.0.1 one.one.one.one
1.1.1.1 one.one.one.one
8.8.4.4 dns.google
8.8.8.8 dns.google
9.9.9.9 dns9.quad9.net
9.9.9.11 dns11.quad9.net
45.90.28.100 dns1.nextdns.io
45.90.30.100 dns2.nextdns.io
94.140.14.140 dns-unfiltered.adguard.com
@djprmf
djprmf / abuseIP.php
Created Oct 31, 2021
Abuse reporting to AbuseIPDB from CSF
View abuseIP.php
#!/usr/local/bin/php
<?php
// Credits
// https://www.webniraj.com/2019/03/12/auto-reporting-lfd-block-reports-to-abuse-ip-db-v2/
// AbuseIPDB API v2 Key
$api_key = 'xxx';
// AbuseIPDB API v2 Endpoint
View Teste da CSF
perl /usr/local/csf/bin/csftest.pl
####
Host TugaTech
https://host.tugatech.com.pt/
@djprmf
djprmf / Instalar CSF
Last active Nov 10, 2020
Instalar CSF - Host TugaTech
View Instalar CSF
cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
####
Host TugaTech
https://host.tugatech.com.pt/
View gist:351c005c3356d8e8eeee5ba803b10d08
rpm -Uvh --force http://mirror.centos.org/centos-7/7/os/x86_64/Packages/centos-release-7-8.2003.0.el7.centos.x86_64.rpm
yum clean all
yum update -y
View mailhelo
*: PTR.DO.IP
NOTA: PTR corresponde ao hostname do IP basicamente. Deve criar algo e configurar um domínio para tal. Por exemplo - mailserver.dominio.com
O PTR pode ser alterado na empresa onde comprou o IP.
View disable-bing-search.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"CortanaConsent"=dword:00000000
"BingSearchEnabled"=dword:00000000
View gist:e36851f33da0a2586a416f70d7afd84e
#Force www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]
View gist:92280af1f32a71c285c8fe50b3bbddf9
# CONFIGURAR UTILIZAÇÃO DO HTTPS
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://dominiodosite.pt/$1 [R,L]