Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Loading...

Pedro Fernandes djprmf

💻
Loading...
View GitHub Profile
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]
View adware websites
- keepass.fr
- 7zip.fr
- inkscape.fr
- gparted.fr
- clonezilla.fr
- paintnet.fr
- greenshot.fr
- scribus.fr
- audacity.es
- stellarium.fr
View Windows7-atualizar-tugatech.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat]
"cadca5fe-87d3-4b96-b7fb-a231484277cc"=dword:00000000
;Chave criada pelo TugaTech
;tugatech.com.pt
View correcao_windows_aslr.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel]
"MitigationOptions"=hex:00,01,01,00,00,00,00,00,00,00,00,00,00,00,00,00