Useful things - zacisco/notes GitHub Wiki

For Browsers

Extentions

Scripts (Grace Monkey/Tampermonkey)

My wide screen script for web telegram
// ==UserScript==
// @name          WebogramZ/K Wide
// @description	  A dark theme for the Telegram Web application.
// @author        Z@C
// @icon          https://webk.telegram.org/assets/img/favicon-32x32.png
// @icon          https://webz.telegram.org/favicon-32x32.png
// @include       http://webz.telegram.org/*
// @include       https://webz.telegram.org/*
// @include       http://*.webz.telegram.org/*
// @include       https://*.webz.telegram.org/*
// @include       http://web.telegram.org/z/*
// @include       https://web.telegram.org/z/*
// @include       http://*.web.telegram.org/z/*
// @include       https://*.web.telegram.org/z/*
// @include       http://webk.telegram.org/*
// @include       https://webk.telegram.org/*
// @include       http://*.webk.telegram.org/*
// @include       https://*.webk.telegram.org/*
// @include       http://web.telegram.org/k/*
// @include       https://web.telegram.org/k/*
// @include       http://*.web.telegram.org/k/*
// @include       https://*.web.telegram.org/k/*
// @run-at        document-end
// @version       0.1
// ==/UserScript==
(function() {var css = [
	"/* FOR WIDEE */",
	".bubbles-inner {",
    "    width: 95%;",
	"    max-width: unset !important;",
	"}",
	".MessageList .messages-container {",
	"    width: 95% !important;",
	"    max-width: unset !important;",
	"}",
	".Message > .message-content-wrapper {",
	"    max-width: 85%;",
	"    float: right;",
	"}",
	".message-content:not(.document):not(.media):not(.web-page) {",
	"    max-width: 100%;",
	"}",
	".bubble-content .message {",
	"    max-width: unset !important;",
	"}",
	".bubble .service .is-date {",
	"    width: 95%;",
	"    max-width: unset !important;",
	"}",
	".chat-input,",
	"#MiddleColumn .middle-column-footer {",
	"    width: 95% !important;",
	"    max-width: unset !important;",
	"}",
	".chat-input .chat-input-container {",
	"    max-width: unset;",
	"}",
	"#MiddleColumn .Composer.hover-disabled {",
	"    visibility: hidden;",
	"}",
	".select-mode-active+.middle-column-footer .Composer {",
	"    position: unset !important;",
	"}",
	"/* FOR WIDEE END */"
].join("\n");
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();

Editors

Lightweight notetaking and sketching app (help sign PDF)

Alternative MS Project


Linux

Gnome

Extentions


Other

MS Teams (official app)

Edit /usr/bin/teams and modify the line:

nohup "$TEAMS_PATH" "$@" --disable-namespace-sandbox --disable-setuid-sandbox > "$TEAMS_LOGS/teams-startup.log" 2>&1 &

to include the new option --disable-seccomp-filter-sandbox:

nohup "$TEAMS_PATH" "$@" --disable-seccomp-filter-sandbox --disable-namespace-sandbox --disable-setuid-sandbox > "$TEAMS_LOGS/teams-startup.log" 2>&1 &

but screen sharing don't work with wayland in app


Screen Share + Chromium-based Browsers + Wayland

enable chrome://flags/#enable-webrtc-pipewire-capturer flag in features


Run .desktop app with root prompt

use Exec=pkexec app_name

Other

Generate RSA for Java app

openssl genrsa -out app.priv 4096
openssl rsa -in app.priv -pubout -outform PEM -out app.pub
openssl pkcs8 -topk8 -inform PEM -in app.priv -out app.priv -nocrypt
⚠️ **GitHub.com Fallback** ⚠️