http://www.vlkk.lt/konsultacijos/3501-lietuviskos-kabutes
https://cgit.freedesktop.org/xorg/lib/libX11/plain/nls/en_US.UTF-8/Compose.pre
| sudo chvt 3 | |
| #More info | |
| # man chvt | |
| #https://www.linuxquestions.org/questions/linux-software-2/is-there-a-way-to-switch-to-a-tty-with-a-command-135429/ | |
| #How to start and switch to a New Gnome Shell with XDG_SESSION_TYPE="x11"? |
| `mtr` | |
| `apt-file` |
| @ECHO OFF | |
| :Download-version-number-file-from-dlang | |
| :: Downloads LATEST file from dlang, via bitsadmin - official command line download utility included since Windows 7 | |
| :: LATEST file is a plain text file that contains a single line of text: a number of latest version of DMD. | |
| bitsadmin /Transfer "%random%" "http://downloads.dlang.org/releases/LATEST" "%cd%/LATEST" | |
| IF NOT ERRORLEVEL 0 ( | |
| TITLE BITSADMIN have an error, retrying to download LATEST file | |
| TIMEOUT "2" | |
| CLS |
dbus-run-session -- gnome-shell --nested --wayland
busctl --user call \ org.gnome.Shell \ /org/gnome/Shell \ org.gnome.Shell.Extensions ReloadExtension \ s "$name"
busctl --user call org.gnome.Shell /org/gnome/ScreenSaver org.gnome.ScreenSaver SetActive b true
or
xdg-screensaver activate
Other method:
busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 3
Get the desktop file name of the current default web browser
xdg-settings get default-web-browser
Check whether the default web browser is firefox.desktop, which can be
false even if "get default-web-browser" says that is the current value
(if only some of the underlying settings actually reflect that value)
xdg-settings check default-web-browser firefox.desktop
Disabling Turbo Boost intel_pstate
# https://wiki.archlinux.org/index.php/CPU_frequency_scaling
cat /sys/devices/system/cpu/intel_pstate/no_turbo
cat /sys/devices/system/cpu/intel_pstate/max_perf_pct
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
| # Installs Gnome with extra components but without Ubuntu extensions | |
| # sudo apt-get install gnome-shell | |
| # Installs Gnome without extra components, adds Vanilla Gnome selection, shell theme is still selected | |
| # sudo apt-get install gnome | |
| # Correct way to install ubuntu gnome | |
| sudo apt-get install ubuntu-gnome-desktop |
| #!/usr/bin/env -vS dub run --single --temp-build example.d | |
| /+ dub.sdl: | |
| name "WebApplication" | |
| dependency "arsd-official:dom" version="4.0.2" | |
| +/ | |
| import std.stdio; | |
| import arsd.dom; | |
| void main() | |
| { | |
| writeln(`Content-type: text/html`); |