Skip to content

Instantly share code, notes, and snippets.

View abelmferreira's full-sized avatar

Abel Ferreira abelmferreira

View GitHub Profile
@abelmferreira
abelmferreira / exchange-GetMailboxFolder-FullPath.ps1
Created May 1, 2021 13:58
Procura por pastas no Exchange Online e retorna o caminho completo (full path) e seu tamanho
# Procura por pastas no Exchange Online e retorna o caminho completo (full path) e seu tamanho
#
# Uso:
# exchange-GetMailboxFolder-FullPath.ps1 -Find Texto
#
# Instala automaticamente se não encontrado o módulo ExchangeOnlineManagement
# Solicita credenciais para conectar ao Exchange Online se não conectado
#
Param (
@abelmferreira
abelmferreira / exportRoute53Zone.sh
Created July 14, 2019 14:01
Export AWS Route53 zone
#!/bin/bash
# Export a AWS DNS Route53 Zone to file
# Install and configure AWS CLI first
# Usage: exportRoute53Zone.sh zonename
zonename=$1
hostedzoneid=$(aws route53 list-hosted-zones | jq -r ".HostedZones[] | select(.Name == \"$zonename.\") | .Id" | cut -d'/' -f3)
aws route53 list-resource-record-sets --hosted-zone-id $hostedzoneid
@abelmferreira
abelmferreira / fix_steam_volume_case.sh
Created January 15, 2018 00:30
Fix Steam Case Sensitive Volume Install
#!/bin/bash
## Try to use following solution.
## ------------------------------------
USER=$(whoami)
echo $USER
echo 'step 1'
cd /Users/$USER/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/public; ls *.res | while read line ; do file=$(echo $line | tr '[:upper:]' '[:lower:]'); mv $line $file; done
@abelmferreira
abelmferreira / HTTP_response_codes.csv
Created October 16, 2017 14:07
Relação de do HTTP Response codes
codigo nome descricao
100 HTTP_CONTINUE Continue
101 HTTP_SWITCHING_PROTOCOLS Switching Protocols
200 HTTP_OK OK
201 HTTP_CREATED Created
202 HTTP_ACCEPTED Accepted
203 HTTP_NON_AUTHORITATIVE Non-Authoritative Information
204 HTTP_NO_CONTENT No Content
205 HTTP_RESET_CONTENT Reset Content
206 HTTP_PARTIAL_CONTENT Partial Content
@abelmferreira
abelmferreira / open_port_scan.ps1
Created October 16, 2017 13:57
Powershell script para scan de portas abertas em uma lista de portas em uma lista de ips
$portrange = 1226..1260
$net = "10.0.0"
$range = 2..2
$timeout_ms = 5
foreach ($r in $range)
{
Get-Date
$ip = "{0}.{1}" -F $net,$r