Skip to content

Instantly share code, notes, and snippets.

View gblmarquez's full-sized avatar
🏡
Focused on people for growth the business

Gabriel Marquez gblmarquez

🏡
Focused on people for growth the business
View GitHub Profile
<#
# TO EXECUTE USE
# Set-ExecutionPolicy AllSigned; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/gblmarquez/e57c873e491d22cc265a9186da95f9e6/raw/f3f8e1a214595a22f28a52c0dbf4c680378943cd/WS2016Optimisations.ps1'))
####################################################################
# File Name : WS2016Optimisations.ps1 #
# Author : George Spiers with thanks to Keith Campbell #
# for assistance. #
# Email : george@jgspiers.com #
# Twitter : @JGSpiers #
# Website : www.jgspiers.com #
@gblmarquez
gblmarquez / countries_codes_and_coordinates.csv
Created October 10, 2017 12:49 — forked from tadast/countries_codes_and_coordinates.csv
Countries with their (ISO 3166-1) Alpha-2 code, Alpha-3 code, UN M49, average latitude and longitude
Country Alpha-2 code Alpha-3 code Numeric code Latitude (average) Longitude (average)
Afghanistan AF AFG 4 33 65
Albania AL ALB 8 41 20
Algeria DZ DZA 12 28 3
American Samoa AS ASM 16 -14.3333 -170
Andorra AD AND 20 42.5 1.6
Angola AO AGO 24 -12.5 18.5
Anguilla AI AIA 660 18.25 -63.1667
Antarctica AQ ATA 10 -90 0
Antigua and Barbuda AG ATG 28 17.05 -61.8
@gblmarquez
gblmarquez / Import-ICPBrasil-CertiticateAuthorities.ps1
Last active October 4, 2019 12:12
Importar Certificados das Autoridades Certificadoras (ACs) da ICP-Brasil
#
# How to execute
# Using Windows
# PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/gblmarquez/0124ce6e20ffb7883ecc021673c48417/raw/a403721d0f0abe2a609e312d9d2f74af47dc6514'))"
#
function DownloadWithRetry([string] $Uri, [string] $OutFile, [int] $retries = 5) {
while($true) {
try {
Invoke-WebRequest -Uri $Uri -OutFile $OutFile
@gblmarquez
gblmarquez / Import-ICPBrasil-CertiticateAuthorities-Azure-VMSS.sh
Created June 23, 2018 16:57
Importar Certificados das Autoridades Certificadoras (ACs) da ICP-Brasil no Azure VMSS
az vmss extension set \
--publisher Microsoft.Compute \
--version 1.8 \
--name CustomScriptExtension \
--resource-group myResouce \
--vmss-name myType \
--settings '{"fileUris":["https://gist.githubusercontent.com/gblmarquez/0124ce6e20ffb7883ecc021673c48417/raw/ad0480d25a438512180bd44925f477a9000146e1/Import-ICPBrasil-CertiticateAuthorities.ps1"],"commandToExecute":"powershell.exe -ExecutionPolicy Unrestricted -File Import-ICPBrasil-CertiticateAuthorities.ps1"}'
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
:: Extract date fields - language dependent
FOR /f "tokens=1-4 delims=/-. " %%i in ('date /t') do (
SET v1=%%i& SET v2=%%j& SET v3=%%k
IF "%%i:~0,1%%" gtr "9" (SET v1=%%j& SET v2=%%k& SET v3=%%l)
FOR /f "skip=1 tokens=2-4 delims=(-)" %%m in ('echo.^|date') do (
@gblmarquez
gblmarquez / setup-base.ps1
Last active April 5, 2026 09:16
Script workspaces
# Enable FIDO Device Logon
New-ItemProperty -Path "HKLM:\SOFTWARE\policies\Microsoft\FIDO" -Name "EnableFIDODeviceLogon" -PropertyType "DWORD" -Value 1 -Force
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -Silent -RemoveCommApps -RemoveGamingApps -DisableDVR -DisableTelemetry -ShowHiddenFolders -HideChat -HideSearchTb -Hide3dObjects -HideMusic
# Internal
winget install --silent --scope machine --accept-package-agreements --accept-source-agreements -e --id token2.FIDO2Manager
winget install --silent --scope machine --accept-package-agreements --accept-source-agreements -e --id Microsoft.CompanyPortal
winget install --silent --scope machine --accept-package-agreements --accept-source-agreements -e --id 9P7BP5VNWKX5
winget install --silent --scope machine --accept-package-agreements --accept-source-agreements -e --id Microsoft.PowerShell
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "quakeMode"
},