Skip to content

Instantly share code, notes, and snippets.

View egomesbrandao's full-sized avatar
🏠
Working from home

Emmanuel G. Brandão egomesbrandao

🏠
Working from home
View GitHub Profile
az login
$azureDevopsResourceId = "499b84ac-1321-427f-aa17-267ca6975798"
$token = az account get-access-token --resource $azureDevopsResourceId | ConvertFrom-Json
$authValue = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":" + $token.accessToken))
$headers = @{
Authorization = "Basic $authValue";
'X-VSS-ForceMsaPassThrough' = $true
}
@riggaroo
riggaroo / create_release_branch.yml
Last active December 5, 2023 10:21
Github Action workflow for creating release branch, updating versionName and versionCode, copying strings.xml to another repo, submitting PRs as per GitFlow.
name: Create Release Branch
on:
workflow_dispatch:
inputs:
versionName:
description: 'Name of version (ie 5.5.0)'
required: true
versionCode:
description: 'Version number (50500)'
required: true
@khaosdoctor
khaosdoctor / workingwithlucas-en-us.md
Last active October 1, 2023 21:46
Useful info when working with me

Working with Lucas

Creation Date: June 2020

Status: in progress

A collection of stuff that might come in handy when working with me

My personal philosophy:

@fernandobarbalho
fernandobarbalho / gist:40f7e6c0cf925065e21084062e5ad513
Last active August 9, 2022 20:55
script para leitura e tratamento de tabela do ibama sobre oleamento de praias do NE
library(tabulizer)
library(dplyr)
setwd("~/GitHub/oleogate/data")
#Extrai tabelas do arquivo pdf.
#Esse arquivo foi baixado do seguinte link
# https://politica.estadao.com.br/blogs/estadao-verifica/wp-content/uploads/sites/690/2019/10/Ibama.pdf
#A tabela é extraída para um arquivo csv de forma a poder trabalhar melhor questões de encoding
tabulizer::extract_tables("ibama.pdf", output = "csv",outdir = getwd())
@TheFern2
TheFern2 / Custom-Keyboard.md
Last active October 29, 2019 00:31
Keyboard-Building-Guide

Guide to building my custom keyboard

I wanted to build my keyboard just because, nowadays is almost as expensive to build one than buy one, but given that I have 3D printer, I could print the case and plate easily with some minor modifications.

Create Layout

www.keyboard-layout-editor

Create Cad for Plate and Case

@JustinGrote
JustinGrote / Search-Giphy.ps1
Last active December 23, 2022 16:18
Get a random gif from Giphy. ***NOTE: Invoke-TerminalGif was moved to MSTerminalSettings module***
#requires -module msterminalsettings,threadjob
###QUICKSTART
#FIRST: Run this in your Powershell Windows Terminal: Install-Module threadjob,msterminalsettings -scope currentuser
#THEN: iex (iwr git.io/invoketerminalgif)
#THEN: Get-Help Search-Giphy -Examples
#THEN: Get-Help Invoke-TerminalGif -Examples
#THEN: Search-Giphy | Format-List -prop *
#THEN: Invoke-TerminalGif https://media.giphy.com/media/g9582DNuQppxC/giphy.gif
{
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34bf85}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"showTabsInTitlebar": true,
"requestedTheme": "dark",
"profiles": [
{
function GetUrl() {
param(
[string]$orgUrl,
[hashtable]$header,
[string]$AreaId
)
# Build the URL for calling the org-level Resource Areas REST API for the RM APIs
$orgResourceAreasUrl = [string]::Format("{0}/_apis/resourceAreas/{1}?api-preview=5.0-preview.1", $orgUrl, $AreaId)
@WennderSantos
WennderSantos / TwoIntegersThatSumToEight.cs
Created November 23, 2018 17:43
Find pairs that sum to eight. O(n)
static void Main(string[] args)
{
var input = new int[]{4, 5, 2, 3, 4, 1};
var memory = new Dictionary<int, int>();
var results = new List<(int idx1, int idx2)>();
for (var i = 0; i < input.Length; i++)
{
if (memory.ContainsKey(input[i]))
results.Add((memory[input[i]], i));
@andrecarlucci
andrecarlucci / gist:fb1ad3caf46af7eea33cc3bf67d264d9
Created January 3, 2018 13:17
Tampermonkey script tp add #gratidao to all messages on whatsapp web #ironic
// ==UserScript==
// @name MVP Gratidao
// @namespace http://tampermonkey.net/
// @version 0.1
// @description add #gratidao to all messages on whatsapp web
// @author You
// @match https://web.whatsapp.com/
// @grant none
// ==/UserScript==