Skip to content

Instantly share code, notes, and snippets.

View the-louie's full-sized avatar

The Louie the-louie

View GitHub Profile
@the-louie
the-louie / random-teams-bg.ps1
Last active April 26, 2021 07:03
Copy random image and use as Teams background
<#
This script will pick a random jpeg from '$HOME\Pictures\teams-bg\' and copy it to the
Teams background image folder.
To make it work, save this script somewhere and then rename *any* jpeg-image to 'stdbg.jpg' and
use it as a custom background in teams. This file will be overwritten with the ranom background
image everytime the script executes.
Then create a new scheduled task to execute 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' with
the argument:
@the-louie
the-louie / git2code.sh
Last active March 25, 2022 09:11
Open all changed files in vscode
#! /bin/bash
# git2code.sh
#
# lists all files in all commits between the supplied to HEAD, excludes all non-existing files.
#
# /// Louie 2021-04-23 and enormous imprevements by Wanders 2022-03-25
#
IFS=$'\n'
COMMITID="$1"
@the-louie
the-louie / README.md
Last active February 1, 2019 06:15
SCRIPT-8

Keybase proof

I hereby claim:

  • I am the-louie on github.
  • I am the_louie (https://keybase.io/the_louie) on keybase.
  • I have a public key whose fingerprint is D65D 5C9F 7AD4 A9D1 5D71 C6E0 EBCD 0DF3 B103 835C

To claim this, I am signing this object: