Skip to content

Instantly share code, notes, and snippets.

View canemacchina's full-sized avatar

Lorenzo Bugiani canemacchina

  • Masabi
  • Granada, Spain
View GitHub Profile
@canemacchina
canemacchina / rclone.service.md
Created July 23, 2023 15:40 — forked from Gyarbij/rclone.service.md
Steps and example RClone systemd with mounted Google Drive for use with Plex en Jellyfin and other similar use-cases. Replace 'nano' with vi or your editor of choice if not on distro with nano included or because you like misery... your kinks are yours :)

CHANGE LEGEND: (you MUST replace these in the service file)

  • USERNAME = your actual username e.g. gyarbij
  1. Make the requisite directories for mount and cache.
   sudo mkdir /mnt/rclonecache
   sudo chown -R USERNAME:USERNAME /mnt/rclonecache
@canemacchina
canemacchina / Dice.js
Created September 10, 2018 02:03
Dice is a tiny JS object that makes it possible to roll RPG dice using the window.crypto library.
/*
* Dice is a tiny JS object that makes it possible to roll
* cryptographically safe RPG style dice.
*
* Examples:
* Dice.d6();
* Dice.d8.times(3);
* Dice.roll("2d6 + 2d10 + 2");
*