Skip to content

Instantly share code, notes, and snippets.

Avatar

Froilán Irizarry Rivera froi

View GitHub Profile
@froi
froi / poetry-install-compilation-log
Last active May 5, 2023 01:05
nullptr_t: Error log for Poetry install of Python packages that need some sort of compilation
View poetry-install-compilation-log
❯ poetry install --only=main
Installing dependencies from lock file
Package operations: 20 installs, 0 updates, 0 removals
• Installing grpcio-tools (1.48.2): Failed
CalledProcessError
Command '['/Users/froi/Library/Caches/pypoetry/virtualenvs/projecte-5wzozpT2-py3.8/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/froi/Library/Caches/pypoetry/virtualenvs/projecte-5wzozpT2-py3.8', '--no-deps', '/Users/froi/Library/Caches/pypoetry/artifacts/4c/f1/a9/934e68c4bc7e032f327f4bc871af52e86a4f31a91e0e3b33ac131d84f7/grpcio-tools-1.48.2.tar.gz']' returned non-zero exit status 1.
@froi
froi / cbt-helpers.sh
Last active May 25, 2022 20:48
gcp helper commands
View cbt-helpers.sh
#!/usr/bin/env zsh
# These commands can be configured somewhat in ~/.cbtrc
# full docs at https://cloud.google.com/bigtable/docs/cbt-overview#create-cbtrc
instance=""
project_id=""
table_name=""
# Delete all rows in a table
cbt -instance ${instance} \
@froi
froi / pull_request_template.md
Last active February 23, 2022 17:59
GitHub PR template
View pull_request_template.md

Description

Jira and GitHub Issues

@froi
froi / documentation-pr-template.md
Created January 3, 2022 20:57
Documentation section of a pull request template
View documentation-pr-template.md

Documentation

Creating and maintaining documentation is increadibly important. When needed, as part of this PR you need to tackle this too.

  • Documentation was created. URL to docs:
  • Documentation was updated. URL to docs:
  • Changes did not need documentation updates.
@froi
froi / test-gpg.sh
Last active June 30, 2021 04:34
Command to test gpg key
View test-gpg.sh
#!/usr/bin/env sh
echo "1234" | gpg --no-use-agent -o /dev/null --local-user <KEYID> -as - && echo "The correct passphrase was entered for this key"
@froi
froi / candidate-eval-template.md
Last active April 17, 2022 20:32
Template to help me evaluate a candidate
View candidate-eval-template.md

Interview notes for {{candidate name}}

Technical submission

Submission doc

Things to evaluate

Documentation

@froi
froi / .gitconfig
Last active July 22, 2022 19:12
Global Git configuration and template
View .gitconfig
[user]
name = Froilán Irizarry Rivera
email =
signingkey =
[core]
excludesfile = ~/.gitignore_global
editor = nano
quotepath = false
@froi
froi / find-bin-alias.sh
Created July 27, 2020 16:36
Shell alias to find binary file extensions.
View find-bin-alias.sh
alias findbin='find . -type f -not -path "./.git/*" -exec perl -MFile::Basename -e '\''print (-T $_ ? "" : (fileparse ($_, qr/\.[^.]*/))[2] . "\n" ) for @ARGV'\'' {} + | sort | uniq'
@froi
froi / get-repo-labels-generator.js
Last active July 8, 2020 22:17
Quick example of how to use a async generator to get a repository's labels
View get-repo-labels-generator.js
const { Octokit } = require('@octokit/rest');
const { throttling } = require('@octokit/plugin-throttling');
const OctokitThrottling = Octokit.plugin(throttling);
const octokit = new OctokitThrottling({
auth: "your-token",
throttle: {
onRateLimit: (retryAfter, options) => {
octokit.log.warn(