Skip to content

Instantly share code, notes, and snippets.

View nomayann's full-sized avatar

chauvel nomayann

  • Isère, Rhône-Alpes, France
View GitHub Profile
@nomayann
nomayann / auto-stop-nas.sh
Last active October 1, 2021 10:43
Energy saving script: stops automatically a NAS server after an inactivity delay (no ssh client, no samba client as well).
#!/bin/bash
## Cron this every minute so that it runs as root
FLAG_FILE="/home/yann/.no_client.flg"
SVG_FLAG="/home/yann/.backup.flg"
SHUTDOWN_DELAY=15
# Remove file flag if any user is connected and exit
if [ $(who -T | wc -l) != 0 ]; then
@nomayann
nomayann / whoHasTalked.js
Last active October 7, 2020 14:43 — forked from nicordev/whoHasTalked.js
Google meet script to get a list of who has already talked during a daily meeting.
// ==UserScript==
// @name Who has talked?
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Show a list of attendees to see who has already talked. Click on a name to remove it. Double click on the list to remove the overlay.
// @author You
// @match https://meet.google.com/*
// @grant none
// ==/UserScript==