Skip to content

Instantly share code, notes, and snippets.

View theletterf's full-sized avatar
🤌
Ciao!

Fabrizio Ferri-Benedetti theletterf

🤌
Ciao!
View GitHub Profile
# Takes the OpenAPI file
Param(
[parameter(mandatory=$true)][string]$file
)
$name = [System.IO.Path]::GetFileNameWithoutExtension($file)
# Converts OpenAPI to Markdown documentation
npm install -g widdershins
widdershins $file --search false --expandBody --summary -o markdown.md
# Converts Widdershin's markdown output to HTML, then to DocBook5
pandoc markdown.md -f markdown+raw_html -t html -o html.html
@theletterf
theletterf / block-linkedin-one-sentence-paragraph-posts.js
Last active March 4, 2021 02:34
UserScript for blocking those annoying posts with one sentence per paragraph
// ==UserScript==
// @name LinkedIn No-Storytelling-Bait-Posts
// @version 1.0
// @description Hide those annoying posts with one sentence per paragraph.
// @match https://www.linkedin.com/*
// @grant none
// @inject-into content
// ==/UserScript==
(function() {
# Adapted from http://json.schemastore.org/json-patch
components:
schemas:
patchRequest:
type: array
items:
oneOf:
- additionalProperties: false
required: