Main problem - nvidia-settings
needs nvidia GPUs to be started in X.
Workaround - fake displays for nvidia driver in xorg.conf
:
-
nvidia-xconfig --enable-all-gpus
-
edit
/etc/X11/xorg.conf
:
...
// ==UserScript== | |
// @name Google meet change account | |
// @namespace https://gmelikov.com/ | |
// @version 0.1 | |
// @description Autochange google account, if not defined | |
// @author Gmelikov | |
// @match https://meet.google.com/* | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Fix Webogram width | |
// @namespace webogram.fixes | |
// @match https://web.telegram.org/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; |
#!/usr/bin/env python3 | |
import json | |
import sys | |
def main(): | |
with open(sys.argv[1]) as infile: | |
data = json.load(infile) | |
lists = {} |
Add to <head>: | |
``` | |
<meta id="Viewport" name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | |
<script type="text/javascript"> | |
var ww=320; //maximum body size in pixels | |
var ratio = window.innerWidth / ww; | |
document.querySelector('meta[name="viewport"]').setAttribute("content", 'initial-scale=' + ratio + ', maximum-scale=' + ratio + ', minimum-scale=' + ratio + ', user-scalable=yes, width=' + ww); | |
</script> | |
``` |
Main problem - nvidia-settings
needs nvidia GPUs to be started in X.
Workaround - fake displays for nvidia driver in xorg.conf
:
nvidia-xconfig --enable-all-gpus
edit /etc/X11/xorg.conf
:
...
/** | |
* Make inline divs the same height and fill it. | |
* @param {string} container - selector string of parent container. | |
* @param {string} [blocktobottom] - selector string of object to fill height. | |
*/ | |
equalheight = function(container, blocktobottom) { | |
function fillinside($el, currentTallest, blocktobottom) { | |
if (typeof blocktobottom !== 'undefined' && $el.height() < currentTallest) { | |
$el.find(blocktobottom).css('padding-top', ((currentTallest - $el.height()) + parseInt($el.find(blocktobottom).css('padding-top'), 10))); |
<?php | |
/** | |
* Default application resolver | |
* | |
* @package Core | |
* @author Zorin Vasily <maintainer@daemon.io> | |
*/ | |
class MyAppResolver extends \PHPDaemon\Core\AppResolver { |
rsync (Everyone seems to like -z, but it is much slower for me)