Skip to content

Instantly share code, notes, and snippets.

View peppelinux's full-sized avatar

Giuseppe De Marco peppelinux

View GitHub Profile
@ioggstream
ioggstream / deleteme-spid-sgd.yaml
Last active May 5, 2022 17:22
Esempio di schemi con rendering generato
openapi: 3.0.1
info:
title: SDG OAuth
version: 1.1.0
description: SDG OAuth
termsOfService: https://sdg-oauth.github.io/sdg-oauth/
contact:
name: SDG OAuth
url: https://sdg-oauth.github.io/sdg-oauth/
license:
@alranel
alranel / authors.sh
Last active May 9, 2022 05:37
This script can be used on a git repository to extract the contributors with the purpose of listing potential copyright holders on a given codebase. If invoked with a sub-path, it will only consider that file or directory.
#!/bin/sh
# Syntax: authors.sh [ PATH ]
LC_CTYPE=C
LANG=C
# Get all files in HEAD, skipping the bootloaders directory
files=$(git ls-tree -r --name-only HEAD "$1" | grep -v "^bootloaders" | grep -v "^firmwares" | xargs grep -Il "")