Skip to content

Instantly share code, notes, and snippets.

@PauloBoaventura
PauloBoaventura / nginx.conf
Created June 30, 2022 19:46 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@PauloBoaventura
PauloBoaventura / Download-Build2020.ps1
Created November 20, 2020 18:19 — forked from caseymullineaux/Download-Build2020.ps1
A simple script to download on-demand content from Microsoft Build
param (
# Verify the sessions file exists
[ValidateScript( {
if (-Not ($_ | Test-Path)) {
throw "File does not exist"
}
return $true
})]
[System.IO.FileInfo]$InputFile,
@caseymullineaux
caseymullineaux / Download-Build2020.ps1
Created May 30, 2020 04:26
A simple script to download on-demand content from Microsoft Build
param (
# Verify the sessions file exists
[ValidateScript( {
if (-Not ($_ | Test-Path)) {
throw "File does not exist"
}
return $true
})]
[System.IO.FileInfo]$InputFile,
@genialkartik
genialkartik / php laravel basic project.md
Last active June 16, 2024 16:13
This gist will help you to understand some basic workin of laravel with php.

Phishing Detector

Introduction

Phishing Detector is a web application built in PHP using Laravel (a web application framework) with expressive and elegant syntax. We developed this web app to provide the users and customers from fake websites whose intent is to garble user’s privacy and information. Phishing can be done in many way for instance: Fraudsters send fake emails or set up fake websites that mimic browsing to trick the user into disclosing his protected information like username, password, account details, OTP, etc. This practice is know as ‘Phishing’.

Sign of Phishing Site:

  • Suspicious URL (in correct company name, http:// (unsecured)).
  • Unusual Pop-ups and Alert message.
  • Unintentional redirect of URL, etc.
@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active November 14, 2024 08:31
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

- Marketing 
   - e o conjunto de técnicas e processos que definem as relações entre a sua empresa e o restante do mercado, usando os 4P's: Preço, Praça, Produto e Promoção.
   - Publicidade == é um dos instrumentos que o marketing utiliza na criação das suas estratégias. É o ato de propagar uma mensagem atendendo aos diversos objetivos de marketing.
   - Uma publicidade pode ter a finalidade de vender um produto, divulgar uma ideia ou atrair mais visibilidade para a marca, por exemplo.
- SEO  
    - Search Engine Optmization == Provavelmente a coisa mais importante do marketing digital. Todos que trabalham com web devem ser especialistas nesta sigla :D
- SERP 
    - Search Engine Result Page == resultados das páginas de busca.
  • ROI
    • Return Of Investment
@ivan
ivan / grab-anchor-episode.sh
Last active May 16, 2024 22:16
Download a podcast episode from anchor.fm
#!/usr/bin/env bash
# Download a podcast episode from anchor.fm
#
# Usage:
# grab-anchor-episode "https://anchor.fm/emerge/episodes/Robert-MacNaughton---Learnings-from-the-Life-and-Death-of-the-Integral-Center-e31val" # (m4a example)
# grab-anchor-episode "https://anchor.fm/free-chapel/episodes/Are-You-Still-In-Love-With-Praise--Pastor-Jentezen-Franklin-e19u4i8" # (mp3 example)
#
# anchor.fm serves a list of m4a or mp3 files that need to be concatenated with ffmpeg.
#
@huynhsamha
huynhsamha / xampp-nginx-ubuntu-ec2.md
Last active May 16, 2024 03:10
Config XAMPP with NGINX on Ubuntu 16.04 AWS EC2

Install NGINX

bla bla...

Install XAMPP

# Download
wget https://www.apachefriends.org/xampp-files/7.2.2/xampp-linux-x64-7.2.2-0-installer.run

# Install
chmod +x xampp-linux-x64-5.6.33-0-installer.run
@rszuban
rszuban / .htaccess
Created September 18, 2018 07:59
Redirecting requests to Wordpress xmlrpc.php to other URLs via .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@paulofreitas
paulofreitas / security-http-headers.md
Last active June 11, 2021 16:22
Cabeçalhos de resposta HTTP relacionados a segurança

Content-Security-Policy, X-Content-Security-Policy, X-WebKit-CSP

O cabeçalho de resposta HTTP Content-Security-Policy permite aos administradores de sites controlar os recursos que o navegador ou agente de usuário (user agent) pode carregar em uma determinada página. Com algumas exceções, as políticas envolvem principalmente especificar as origens do servidor e os endpoints de script. Isso ajuda a proteger contra ataques de XSS.

O cabeçalho de respsota HTTP X-Content-Security-Policy é requerido para implementar o CSP no Internet Explorer 10 e 11.

O cabeçalho de resposta HTTTP X-Webkit-CSP é requerido para implementar o CSP em versões mais antigas do Google Chrome, Safari e outros navegadores baseados na engine WebKit.

Para navegadores modernos, o cabeçalho Content-Security-Policy deve ser usado.