Skip to content

Instantly share code, notes, and snippets.

@marsa099
marsa099 / stayGreenOnTeams.js
Last active January 31, 2025 04:00
Paste this in chrome dev tools console to simulate mouse movement every 5 sec
// Open Developer Tools in the Microsoft Teams tab,
// paste this code in the Console, and press Enter to simulate activity.
// Make sure you allow pasting. You will get a warning if pasting is disabled
// Stop script by setting keepAlive = false
let keepAlive = true;
function simulateMouseMove() {
if (!keepAlive) return;
const event = new MouseEvent('mousemove', {

Installation and configuration for password store

Before start:

  • Create a new private GitHub repository for the password store
  • Generate ssh key pair to use with GitHub if you haven't already
    ssh-keygen -t ed25519

Prerequisite for MacOS (skip this for Linux):

  1. Install homebrew (a prerequisite to be able to install the standard unix password manager. Homebrew can be installed via a curl command here: https://brew.sh. Installation takes a couple (5?) minutes

In WSL (Ubuntu 18.04) git shows unwanted unstaged changes sometimes. If you perform git diff on the files, you can see that only file permissions have changed, e.g:

old mode 100755  
new mode 100644

Fix:
Add these lines to /etc/wsl.conf: