Skip to content

Instantly share code, notes, and snippets.

View hugosenari's full-sized avatar
🌞

Hugo Sena Ribeiro hugosenari

🌞
View GitHub Profile
@hugosenari
hugosenari / BR_Municipios_2020.json.7z
Last active July 21, 2021 04:39
BR_Municipios_2020.json source IBGE
This file has been truncated, but you can view the full file.
@hugosenari
hugosenari / holons_async.md
Created June 3, 2021 18:37
Holons as Async/Await

This idea:

Use concepts of holons to build async/await

Objectives:

  • Use stragne nature of studies of holons to formalize async/await schedule

Also look:

@hugosenari
hugosenari / list_apigateway_lambda_functions.nim
Last active April 24, 2021 04:33
List AWS lambda of API id
#!/usr/bin/env nim
import json
import options
import os
import sequtils
import strutils
import strformat
type
{
"greet": "Hello world!"
}
@hugosenari
hugosenari / pipenv-install.sh
Last active March 2, 2021 02:14
pipenv-action
#!/bin/bash
pip install pipenv
python --version
pipenv --three
pipenv install --dev
@hugosenari
hugosenari / inform-merge-no-gif.sh
Last active December 9, 2021 18:23
Inform Merge
#!/bin/bash
SHIP=":ship: $(echo $GITHUB_REF|cut -f3 -d/)"
PACKAGE=":package: [$(echo $GITHUB_REPOSITORY|cut -f2 -d/)]"
ACTOR=":bust_in_silhouette: ${GITHUB_ACTOR}"
POST_DATA='{\"channel\": \"'$SLACK_BOT_CHANNEL'\", \"text\": \"'$SHIP' \\n '$PACKAGE' \\n '$ACTOR' \"}'
curl -s -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer ${SLACK_BOT_TOKEN_GIT_ACTION}" \
@hugosenari
hugosenari / random_gif_url.sh
Last active February 10, 2021 22:20
Random Gif URL
#!/bin/bash
GIF_RATING="${GIF_RATING=pg-13}"
GIF_TAG="${GIF_TAG=so-excited}"
curl -s 'https://api.giphy.com/v1/gifs/random?api_key='$GIPHY_TOKEN'&tag='$GIF_TAG'&rating='$GIF_RATING | \
sed -E 's/.*image_original_url":"([^"]+)".*/\1\n/gi' | \
tr -d '\\'
@hugosenari
hugosenari / README.md
Created December 22, 2020 04:43
Clean up lambda layers

#remove unsued layers

  1. Get all functions;
  2. Get all layers;
  3. Get all layers versions;
  4. From functions, take in use layers;
  5. Take more +10 and -10 they are possible in use;
  6. Not in use = versions - possible in use;
  7. Remove not in use if you pass the safe word.
@hugosenari
hugosenari / aws_lambda_json_rpc.md
Last active August 17, 2020 16:23
Ideas of projects with nim lang

This idea:

Use something like aws-sdk with nerve-rpc and awslambda.nim to create some basic framework for nim/aws lambda.

Objectives:

  • Simplify development both front/back of aws lambda using nim

Also look:

Keybase proof

I hereby claim:

  • I am hugosenari on github.
  • I am hugosenari (https://keybase.io/hugosenari) on keybase.
  • I have a public key ASCG6UoNl4AZf_Az-s3D1j-kCdonkRaxBHUFby9enJgk3go

To claim this, I am signing this object: