Skip to content

Instantly share code, notes, and snippets.

View adrianriobo's full-sized avatar
🎯
Focusing

Adrián Riobo Lorenzo adrianriobo

🎯
Focusing
View GitHub Profile
@adrianriobo
adrianriobo / github-app-jwt.sh
Created May 30, 2022 20:37 — forked from carestad/github-app-jwt.sh
Script to generate JWT for use with Github apps
#!/usr/bin/env bash
# Generate JWT for Github App
#
# Inspired by implementation by Will Haley at:
# http://willhaley.com/blog/generate-jwt-with-bash/
# From:
# https://stackoverflow.com/questions/46657001/how-do-you-create-an-rs256-jwt-assertion-with-bash-shell-scripting
thisdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@adrianriobo
adrianriobo / pull upstream PR
Last active December 21, 2022 09:23 — forked from umayr/recover-deleted-branch.sh
Git cheatsheet
git remote add upstream https://github.com/USER/repository.git
git checkout -b BRANCHNAME
git pull upstream pull/ID/head:BRANCHNAME
git checkout BRANCHNAME