Skip to content

Instantly share code, notes, and snippets.

View froi's full-sized avatar
💭
Moving to Gitlab and Codeberg.org

Froilán Irizarry Rivera froi

💭
Moving to Gitlab and Codeberg.org
View GitHub Profile
@froi
froi / get-repos.sh
Last active June 28, 2024 17:34
gh command to get all repos from a team that have not been archived
gh_org="Code4PuertoRico"
gh_team="code4pr-design"
gh api graphql -f query="query {
organization(login: $gh_org) {
team(slug: $gh_team) {
repositories(first:100) {
nodes {
nameWithOwner
isArchived
@froi
froi / poetry-install-compilation-log
Last active November 14, 2024 04:23
nullptr_t: Error log for Poetry install of Python packages that need some sort of compilation
❯ 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 / engineering-spec-template.md
Last active November 1, 2026 21:25
Engineering spec template
@froi
froi / test-gpg.sh
Last active June 30, 2021 04:34
Command to test gpg key
#!/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 / README.md
Last active July 30, 2020 01:55
playing-with-etajs

This is a quick and simple example on how we can use a template engine to create markdown strings for use in GitHub issues or Jira ticket.

Eta.js

Eta.js is a templating engine that embbeds Javascript syntax into the template it self. It seems super lite weight.

Why use it

When working with issues and PRs, a ton of the code we do are the message templates themselves. I think that extracting this into a template engine will clean up the business logic from the view logic (sound familiar 😉).

@froi
froi / svn_to_git.rst
Created November 26, 2018 05:41 — forked from epicserve/svn_to_git.rst
Convert SVN Repositories to Git Repositories

Convert SVN Repositories to Git Repositories

This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.

1. Retrieve a list of all Subversion committers

@froi
froi / github-questionaire.md
Last active November 26, 2018 22:44
Github Questionaire

Prompt one

Company: Acme computers

Version control platform(s): Many GitHub Enterprise instances installed throughout the company by different teams. Acme Computers is trying to standardize on GitHub Enterprise and consolidate their GitHub usage onto a single instance. The company has many instances of other Git hosting solutions installed as well. Some are fully supported applications. Other instances are on machines under people's desks.

Customer requests:

  • Shrink large repository: Acme wants GitHub to help them shrink the large repository to a more manageable size that is performant for common Git operations. The large repo is a project that is high visibility with an aggressive roadmap. They request that we help them within the month. It's a large, monolithic repository.

Keybase proof

I hereby claim:

  • I am froi on github.
  • I am froi (https://keybase.io/froi) on keybase.
  • I have a public key whose fingerprint is 169B C49E D4F6 2C8C BA1C BBA5 BF18 A8C3 89BF B374

To claim this, I am signing this object:

@froi
froi / README.md
Last active June 30, 2020 05:12
Simple Python Flask app to demonstrate the use of CORS with Flask-restful
@froi
froi / purge_file_git_repo.md
Last active December 30, 2015 10:59
Purge file from git history. Useful if like me you commit/push sensitive data, aka credentials. Command was copied from the excellent Github article: https://help.github.com/articles/remove-sensitive-data

1. Change into repo folder

cd my-repo

2. Change into branch you want to modify if not already in it

git checkout <branch>

3. Purge the file

This is the nuclear option. Have to be sure this is what is wanted! Substitute with the name of the file you want gone!