Skip to content

Instantly share code, notes, and snippets.

View marcospinello's full-sized avatar
🖖
Docs or it didn't happen

Marco Spinello marcospinello

🖖
Docs or it didn't happen
View GitHub Profile
@wouter-veeken
wouter-veeken / lint-openapi-with-vale.js
Last active March 1, 2024 08:34
Node JS script that accepts a swagger.json URL passed on the command line, extracts human-readable descriptions, and passes them to Vale for grammar/style checks. Requires: Node, Vale. DISCLAIMER: ChatGPT wrote most of this for me, with a fair amount of tweaking and iteration, and it works to my satisfaction. Approach with a healthy degree of sk…
// $ node lint-openapi-with-vale.js https://link-to-my/swagger.json
const axios = require('axios');
const { exec } = require('child_process');
async function fetchSwaggerJson(remoteUrl) {
try {
const response = await axios.get(remoteUrl);
return response.data;
} catch (error) {
@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() {
@Neo23x0
Neo23x0 / Base64_CheatSheet.md
Last active March 10, 2024 09:15
Learning Aid - Top Base64 Encodings Table

Base64 Patterns - Learning Aid

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env:
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" <. Often used by Emotet (UTF-16)
@briandominick
briandominick / asciidoc-static.adoc
Last active March 11, 2024 18:24
Static Site Generators with AsciiDoc Support

There are 28 static site generators that support AsciiDoc sourcing.

@szurcher
szurcher / .fix_rvm
Last active December 25, 2021 19:36
How to set RVM GEM_HOME and GEM_PATH properly for BASH + TMUX
# be sure to change the values below correctly for your system!
export GEM_HOME="$HOME/.rvm/gems/ruby-2.4.1"
export GEM_PATH="$HOME/.rvm/gems/ruby-2.4.1:$HOME/.rvm/gems/ruby-2.4.1@global"
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 2, 2024 16:19
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux

Keybase proof

I hereby claim:

  • I am quinnnorton on github.
  • I am quinn (https://keybase.io/quinn) on keybase.
  • I have a public key ASBksDACU5UHZpG7xCY0N857FOqqG4F6Vx4Cud1p4jPMFAo

To claim this, I am signing this object:

@sniper7kills
sniper7kills / ELK-install.sh
Last active February 7, 2020 02:13
ELK-Install-Ubuntu-16.04
#/bin/bash
#Ask some info
echo -n "Enter ELK Server IP or FQDN: "
read eip
echo -n "Enter Admin Web Password: "
read adpwd
#Update System
sudo apt-get update
sudo apt-get upgrade -y
@budparr
budparr / robots.txt
Last active August 13, 2019 14:21
Jekyll Robots page to exclude from robots pages that are excluded from the sitemap
---
layout: null
permalink: robots.txt
---
# filter pages and documents for the noindex key
{% assign noindexPages = site.pages | where: 'sitemap', false %}
{% assign noindexDocuments = site.documents | where: 'sitemap', false %}
User-agent: *
# robotstxt.org - if _config production variable is false robots will be disallowed.
{% if site.production != true %}
@jult
jult / blockpeers.sh
Last active March 5, 2024 07:33
blocking p2p peer snoopers and evil corp (for Tixati IP filter and such)
#!/bin/sh
# This script runs every other night at 04:56 CET on a webserver I maintain
# Results are always at: https://jult.net/block.txt ( or https://jult.net/block.txt.gz )
# And much smaller, stripped of BS; https://jult.net/bloc.txt
# For use in Tixati IP filter: https://jult.net/bloc.txt.gz !!!
# And finally a txt file with just the bold IP-ranges: https://jult.net/bl.txt (or https://jult.net/bl.txt.gz )
# Download open block-lists, unpack, filter:
curl -s https://www.iblocklist.com/lists.php | grep -A 2 Bluetack | xargs wget -qO - --limit-rate=500k | gunzip -f | egrep -v '^#' > /tmp/xbp