Skip to content

Instantly share code, notes, and snippets.

View meniluca's full-sized avatar

Luca Menichetti meniluca

  • AWS
  • Zurich
View GitHub Profile
@meniluca
meniluca / make booklets
Last active July 24, 2021 22:42
simple script to make printable booklets for DIY book bindings
#!/bin/bash
set -u
# requires pdfinfo pdfseparate pdfunite pdfbook2
PDF_INPUT=$1
PDF_OUTPUT=$2
echo "converting $PDF_INPUT"
@meniluca
meniluca / Facebook-NoSuggestionsForMe.js
Created May 18, 2021 08:41
To remove ads and annoying videos from your Facebook home. Can be used in combination with "Ad Blocker for Facebook™".
// Simple Facebook "Suggested for your" blocks removal (no distractions!)
// Instructions: copy and paste this code into the browser console
// open Facebook -> ctrl+shift+J (ignore alert) -> (paste into the console) ctrl+V -> ENTER
var removedADS = 0;
function get_a_elements_by_inner(word) {
res = []
elems = [...document.getElementsByTagName('a')];