Skip to content

Instantly share code, notes, and snippets.

View Thadah's full-sized avatar
🏳️‍🌈

Gontzal Pujana Onaindia Thadah

🏳️‍🌈
View GitHub Profile
@Thadah
Thadah / clearNewTeamsCache.ps1
Created November 30, 2023 10:20
Clears New Teams cache and restarts the application
# Stop Teams Process
function Stop-Teams {
$teamsProcessName = "ms-teams"
$teams = Get-Process -Name $teamsProcessName -ErrorAction SilentlyContinue
if ($null -ne $teams){
Write-Host "Teams Process Found, stopping..." -ForegroundColor Yellow
Stop-Process -Name $teamsProcessName -Force
Start-Sleep 5
}
$teams = Get-Process -Name $teamsProcessName -ErrorAction SilentlyContinue
@Thadah
Thadah / w2g-auto-join.js
Last active November 28, 2023 18:39
Auto Join w2g.tv Room - Tampermonkey Script
// ==UserScript==
// @name Auto Join w2g.tv Room
// @namespace http://tampermonkey.net/
// @version 1.0.1
// @description Automatically click the 'Join the Room' button on w2g.tv
// @author Thadah D. Denyse
// @match *://w2g.tv/*
// @grant none
// ==/UserScript==
@Thadah
Thadah / mp3tom4a.sh
Created October 4, 2023 15:17
Converts a folder full of MP3 files into AAC-LC M4A files with all metadata and artwork
#!/bin/bash
# Define the source and destination directories
SRC_DIR="/path/to/folder/"
DEST_DIR="/path/to/folder/"
# Define audio quality
# 0.1 (Highest Quality) - 2 (Lowest Quality)
AUDIO_QUALITY=1
AUDIO_SAMPLING=44100
@Thadah
Thadah / clearTeamsCache.ps1
Last active February 10, 2023 12:23
Clears Teams cache and restarts the application
# Gontzal Pujana 2023
# Set-ExecutionPolicy Unrestricted -Scope Process -Force -ErrorAction SilentlyContinue; ls -Recurse *.ps*1 | Unblock-File; .\"clearTeamsCache.ps1"
# Stop Teams Process
function Stop-Teams {
$teams = Get-Process -Name Teams -ErrorAction SilentlyContinue
if ($null -ne $teams){
Write-Host "Team Process Found, stopping..." -ForegroundColor Yellow
Stop-Process -Name Teams -Force
Start-Sleep 5