Skip to content

Instantly share code, notes, and snippets.

View marcelosousa's full-sized avatar
🦄
reviewpad

Marcelo Sousa marcelosousa

🦄
reviewpad
View GitHub Profile
@marcelosousa
marcelosousa / common.yml
Created October 27, 2022 15:49
Automate pull requeres in 1 minute
api-version: reviewpad.com/v3.x
labels:
small:
color: "#294b69"
medium:
color: "#a8c3f7"
large:
color: "#8a2138"

Description

Related issue

@marcelosousa
marcelosousa / keybase.md
Created September 3, 2022 11:42
keybase.md

Keybase proof

I hereby claim:

  • I am marcelosousa on github.
  • I am marceloabsousa (https://keybase.io/marceloabsousa) on keybase.
  • I have a public key ASBzOZ92HsyJIBQHNAFRsoY_NTr5529FNSgDX8Zmq0TCjQo

To claim this, I am signing this object:

.gitignore: 5, William Hilton: 100.00
.prettierrc: 8, William Hilton: 100.00
.releaserc: 9, William Hilton: 100.00
azure-pipelines.yml: 60, Jakub Jankiewicz: 3.33, William Hilton: 96.67
index.d.ts: 319, Joel Spadin: 0.63, Jakub Jankiewicz: 5.33, raldone01: 94.04
karma.conf.js: 201, William Hilton: 100.00
LICENSE: 9, William Hilton: 100.00
package-lock.json: 13271, William Hilton: 100.00
package.json: 66, Jesse Ditson: 1.52, William Hilton: 98.48
README.md: 278, fuzzyTew: 2.88, Jakub Jankiewicz: 4.68, William Hilton: 92.45
@marcelosousa
marcelosousa / index.js
Last active December 4, 2019 15:00
Google cloud function deployment with protobot
const { createProbot } = require('probot');
async function dec() {
const kms = require('@google-cloud/kms');
const client = new kms.KeyManagementServiceClient();
const ciphertext = "asdadkjasdCASDASdlkjasdasd11";
const name = 'projects/PROJECT-ID/locations/global/keyRings/KEY-NAME/cryptoKeys/CRYPTO-NAME';
const [result] = await client.decrypt({name, ciphertext});
return result.plaintext.toString('ascii');