Skip to content

Instantly share code, notes, and snippets.

@EBendinelli
EBendinelli / mondeDiploGrabber.js
Last active January 25, 2022 22:04
Puppeteer script to download latest edition of Le Monde Diplomatique (epub)
// Requires npm, puppeteer, chromium
// One line installer (debian): ```sudo apt install chromium-browser npm && npm i puppeteer-core```
// launch with ```node mondeDiploGrabber.js```
// Files will be put in the download folder
// tested on raspbian with node v12.18^
const puppeteer = require('puppeteer');
(async () => {

Keybase proof

I hereby claim:

  • I am ebendinelli on github.
  • I am bendineliot (https://keybase.io/bendineliot) on keybase.
  • I have a public key ASCOiCe-1xpKz6rHN5HOPN4bt6iGR0PagD13cJyduVlPkAo

To claim this, I am signing this object:

@EBendinelli
EBendinelli / change_peertube_categories.md
Last active December 22, 2023 07:25
Change PeerTube categories

How to change PeerTube categories

Works for already installed instances. Useful if you are using peertube within an organization and want to change the default categories to have your own.

  • Stop PeerTube

service peertube stop

  • Log wiht postgres user

sudo -u peertube -i