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 / valid_ceps.json
Last active December 14, 2023 20:23
Valid postal codes (CEP) for Brazil
This file has been truncated, but you can view the full file.
[
"01001000",
"01001001",
"01001010",
"01002000",
"01002001",
"01002010",
"01002020",
"01003000",
"01003001",
@gblmarquez
gblmarquez / .tmux.conf
Created August 6, 2015 14:28
.tmux.conf with fish as default shell
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# support logging out and back in
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# pbcopy support
set-option -g default-command "reattach-to-user-namespace -l bash"
# vi mode
sudo apt-get -y install curl
echo "Add repos"
#Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# VirtualBox
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian saucy contrib" >> /etc/apt/sources.list.d/virtualbox.list'
# Spotify
@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 / win10-dev.md
Created May 18, 2017 13:44 — forked from wsargent/win10-dev.md
Windows Development Environment for Scala

Windows 10 Development Environment for Scala

This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.

Sadly, much of this pertains to Git, GPG, SSH, and Windows all not working, rather than Windows Subsystem for Linux. There is no unified command line experience for native Windows still -- instead, there's a bunch of different conflicting programs which all bring along their own environment and need to be told about each other.

Harden Windows 10

Read the entire Decent Security guide, and follow the instructions, especially:

@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"}'
@gblmarquez
gblmarquez / cnaes-servico.json
Last active May 14, 2018 15:07
CNAEs de Serviço
[
"0161001",
"0161002",
"0161003",
"0161099",
"0162801",
"0162802",
"0162803",
"0162899",
"0163600",

/Providers

POST /Providers

  {
    id: "paulistana", // ID
    name: "Paulistana",
    standard: "ABRASF",
    version: "1.00",
    actions: [