Skip to content

Instantly share code, notes, and snippets.

@cubimon
cubimon / userscript.js
Last active June 16, 2023 17:58
GeForce NOW Fullscreen
// ==UserScript==
// @name GeforceNow Fullscreen
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://play.geforcenow.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=geforcenow.com
// @grant none
// ==/UserScript==
@cubimon
cubimon / virtual-mic.bash
Created February 22, 2021 22:49
Pulseaudio virtual microphone/loopback output -> input
function virtual-mic {
mic=`pacmd info | grep "Default source" | cut -d":" -f2 | xargs`
echo "using ${mic}"
pactl load-module module-null-sink sink_name=Loopback sink_properties=device.description="Loopback"
pactl load-module module-loopback source=${mic} sink=Loopback
}
@cubimon
cubimon / README.md
Last active April 23, 2020 19:44
Firefox hide tabbar

Find out windows xid:

wmctrl -l

First column/hex value is the xid, last column is window name. Run gstreamer now:

gst-launch-1.0 ximagesrc use-damage=false xid=0x02e00001 ! videoconvert ! xvimagesink

0x02e00001 is the hex xid from the previous command.

@cubimon
cubimon / nginx.conf
Created January 21, 2020 08:31
minimal nginx.conf
events {
worker_connections 4096;
}
http {
# access_log access.log; # optional access log
# error_log error.log; # optional error log
server {
listen 8080;
root dist;
location / {

Create new firefox profile for pwa:

  • firefox -P then on gui add a new profile named "app"

reference
Before we edit/create userChrome.css, we first have to make sure it is enabled.
userChrome.css is by default disabled on firefox >= 86:

  • in about:config set toolkit.legacyUserProfileCustomizations.stylesheets to true to enable userChrome.css