Skip to content

Instantly share code, notes, and snippets.

View deermichel's full-sized avatar

Micha Hanselmann deermichel

View GitHub Profile
@deermichel
deermichel / sfc-smallgroups.js
Created March 24, 2020 14:21
Chrome snippet to create our small groups on WhatsApp Web
(() => {
// params
const participantsSelector = "_315-i _F7Vk"; // WhatsApp Web as of 2020-03-24
const maxGroupSize = 4;
const hostGroup = ["You", ...]; // evening hosts form their own group
// fetch participants
const span = document.getElementsByClassName(participantsSelector);
if (span.length === 0) throw new Error("No group selected");
let participants = span[0].innerText.split(", ");
@deermichel
deermichel / ubuntu18.04-install.md
Last active August 13, 2018 20:49
Ubuntu 18.04 LTS Install Guide covering full disk encryption (luks, lvm) and GPT, UEFI, Secure Boot

Neat Custom Ubuntu 18.04 LTS Install Guide

Goals

  • Single system (no multi-boot)
  • Full disk encryption (luks, lvm)
  • Separate /home partition
  • GPT, UEFI, Secure Boot
  • Windows 10 virtual machine - ok, you are allowed to skip this ^^

Prerequisites

@deermichel
deermichel / xx-checker.js
Created March 23, 2018 20:25
Node script listening for webpage changes (here: tgi exam results)
// simple script listening for webpage changes (here: tgi exam results)
// (c) 2018 Micha Hanselmann
"use strict"
// imports
const axios = require("axios") // npm install axios
const nodemailer = require("nodemailer") // npm install nodemailer
// regex isolating the string to be tested for changes