Skip to content

Instantly share code, notes, and snippets.

View horacioibrahim's full-sized avatar

Horacio Ibrahim horacioibrahim

View GitHub Profile
/* `googleAppScriptAutoBackup.js` creates copy of files
* when is opened. This script check if file already exists
* so creates the backup file.
*/
var prefixBackupName = "MyFileXYZ"; // we're gonna to use as MyFileXYZ-
var folderId = "hashFolderIdFoundInURL"; // backup folder: where file to be placed it
var principalFileId = "hashFileIdFoundInURL" // principal file that it'll be copied
var workDir = DriveApp.getFolderById(folderId);
var myGMT = "GMT-3:00"
@horacioibrahim
horacioibrahim / calendar2sheet.js
Last active September 13, 2021 14:12
App Script to get events from Calendar API and insert to Spreadsheet
// Reference: https://www.youtube.com/watch?v=YDhln3ukH7Y&t=3s
function getEvents() {
var calId = "yourcalendar@yourbusiness.com"; // this is a Google Calendar Id
var startDate = "9/1/2021 12:00 AM" // Month/Day/Year
var endDate = "9/13/2021 11:59 PM" // Month/Day/Year
var nameOfSheet = "getEventsSheet" // You must have Filename and Sheet names (your tabs inner doc)
// spreadsheet
var ss = SpreadsheetApp.getActiveSpreadsheet();
@horacioibrahim
horacioibrahim / discovery_highlights
Last active August 1, 2020 17:26
Discovery highlights
to harness
increasingly
affordable
advancing
rapidly
significant costs
delays
constrain*
time
spent
@horacioibrahim
horacioibrahim / data_driven_highlight
Created August 1, 2020 02:24
Words to data-driven highlights
$?? billion
$?? trillion
?0
?1??
?2??
?3??
?4??
?5??
?6??
?7??
@horacioibrahim
horacioibrahim / data_driven_highlight
Created August 1, 2020 02:24
Words to data-driven highlights
$?? billion
$?? trillion
?0
?1??
?2??
?3??
?4??
?5??
?6??
?7??
{
"hws.resource.type.vm": [
{
"resourceType": "hws.resource.type.vm",
"cloudServiceType": "hws.service.type.ec3",
"resourceSpecCode": "c6.16xlarge.4.win",
"periodList": 0,
"cpu": "64 vCPUs",
"mem": "256 GB",
"disk": "40 GB",
@horacioibrahim
horacioibrahim / mFilter.html
Created January 23, 2019 15:38
mFilter.html
<template>
<div class="mFilter">
<div class="row d-md-none"> <!-- back arrow -->
<div class="col">
<h2 class="text-primary m-b-10">
<router-link to="/transactions" class="text-primary back-arrow waves-effect">
<i class="mdi mdi-arrow-left"></i>
</router-link>
</h2>
</div>
@horacioibrahim
horacioibrahim / estaleiro_signature.py
Last active March 14, 2018 04:44
Create your signature with the Estaleiro logo
# -*- coding: utf-8 -*-
#!/usr/bin/env python
"""Para rodar simplesmente execute no seu terminal:
$ python <(curl -s https://gist.githubusercontent.com/horacioibrahim/01629284db5ea4466b9b018c4ba8a1f6/raw/27c46422676f3bbc23eb1c48632699bf31d99927/estaleiro_signature.py)
Depois copie o html gerado e cole na sua preferência de assinatura de e-mail.
"""
@horacioibrahim
horacioibrahim / orgaos_federais_executivo.txt
Created October 6, 2017 00:55
Lista com orgaos da esfera federal (sem IES)
ABIN
AEB
AGLO
AGU
ANA
ANAC
ANATEL
ANCINE
ANEEL
ANP
@horacioibrahim
horacioibrahim / ca-unknown.md
Last active April 20, 2017 13:20
[Android] SSL para CA Desconhecida

SETUP PARA CA DESCONHECIDAS - Adicionando um certificado com a cadeia concatenada

Objetivo

Implementar um certificado que concatena as CA intermediárias, a raiz e obviamente o certificado servidor para Android , no intuito de evitar uma exceção SSLHandshakeException gerada por uma autoridade certificadora desconhecida.

Observação

Adicionar certificados intermediários e raiz em um único arquivo não é uma implementação