Skip to content

Instantly share code, notes, and snippets.

View polaco1782's full-sized avatar

Cassiano Martin polaco1782

  • Santa Cruz do Sul, RS, Brazil
View GitHub Profile
@polaco1782
polaco1782 / aravis.ps1
Last active September 13, 2024 17:45
Aravis library win64 building
# run commands using windows powershell, administrator
### install python, ninja, meson and pkg-config tool using chocolatey package manager
###
### ! MUST HAVE POWERSHELL ADMINISTRATOR PRIVILEGES TO WORK !
###
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install python311
choco install meson
choco install ninja
@polaco1782
polaco1782 / aws-region-ipv4.sh
Created February 20, 2025 12:01
Get AWS ipv4 ranges based on region
#!/bin/bash
#
# You need JQ. Replace the region with the one you want
#
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select(.region == "us-east-1") | .ip_prefix'