Skip to content

Instantly share code, notes, and snippets.

View tjcomserv's full-sized avatar

TJ Computer Services tjcomserv

View GitHub Profile
@tjcomserv
tjcomserv / add-music.rsc
Last active December 31, 2023 14:20 — forked from ThinGuy/add-music.rsc
add music to mikrotik switches
View add-music.rsc
/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.
View document.load_client_injection.js
// ==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 <andreas@bawue.net>, based on a script from jnd@chromium.org, based on idea from gurreiro_fabio@yahoo.com.br
// @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
View proxmox_non_sub.txt
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