Skip to content

Instantly share code, notes, and snippets.

@tjcomserv
tjcomserv / remove-gamebar-powershell-win10.md
Created December 12, 2024 22:35 — forked from joshschmelzle/remove-gamebar-powershell-win10.md
How to Remove the Xbox Game Bar with Powershell on Windows 10. Scroll to the end of the gist for Windows 11.

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.

EDIT: make sure to check out the comment below from @nmhung1985 which seems to be working for most folks.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this is no longer an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
@tjcomserv
tjcomserv / getLatestRouterOSVersion.sh
Last active November 29, 2024 22:26
Bash shell script to get the latest version of RouterOS from Mikrotik
#!/bin/bash
# URL of the MikroTik changelog page
url="https://mikrotik.com/download/changelogs"
# File to store the downloaded HTML
html_file="mikrotik_changelog.html"
# Download the HTML
curl -s "$url" -o "$html_file"
@tjcomserv
tjcomserv / add-music.rsc
Last active December 31, 2023 14:20 — forked from ThinGuy/add-music.rsc
add music to mikrotik switches
/system script
add name="Music:SuperMarioBros" owner=admin policy=read source=":beep frequency=660 length=100ms;\
\n:delay 150ms;\
\n:beep frequency=660 length=100ms;\
\n:delay 300ms;\
\n:beep frequency=660 length=100ms;\
\n:delay 300ms;\
\n:beep frequency=510 length=100ms;\
\n:delay 100ms;\
\n:beep frequency=660 length=100ms;\
@tjcomserv
tjcomserv / document.load_client_injection.js
Created August 22, 2023 13:19 — forked from ixs/document.load_client_injection.js
userscript adding the document.load() function in order to make legacy webinterfaces such as the Avocent PM3000 webinterface work again.
// ==UserScript==
// @name document.load client injection
// @namespace http://tampermonkey.net/
// @version 0.1
// @description The Avocent PM1000/2000/3000 PDU runs an old JavaScript interface that relies on the XMLDocument.fetch() function that has been removed. Emulate this.
// @description inject the document.load implementation into real page context.
// @author Andreas Thienemann <[email protected]>, based on a script from [email protected], based on idea from [email protected]
// @match http://172.16.10.64/*
// @match http://172.16.10.65/*
// @run-at document-start
@tjcomserv
tjcomserv / proxmox_non_sub.txt
Created July 7, 2023 10:52
Proxmox use Non subscription for updates
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-no-subscription.list
sed -i '1 s/^/#/' /etc/apt/sources.list.d/pve-no-subscription.list
echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" >> /etc/apt/sources.list.d/pve-no-subscription.list
apt update && apt upgrade
reboot