Minimize on click:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
Back to default:
gsettings reset org.gnome.shell.extensions.dash-to-dock click-action
Minimize on click:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
Back to default:
gsettings reset org.gnome.shell.extensions.dash-to-dock click-action
# from https://www.reddit.com/r/linux_gaming/comments/kb95g8/brightness_and_touchpad_lenovo_legion_5_ubuntu/ | |
sudo nano /etc/default/grub | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1" | |
sudo update-grub2 | |
sudo reboot |
[Unit] | |
Description=queue Worker Number %i | |
After=network.target | |
[Service] | |
Type=simple | |
User=user | |
WorkingDirectory=/path/to/project | |
PIDFile=/var/run/queue.%i |
[Unit] | |
Description=Geoserver | |
After=multi-user.target | |
[Service] | |
Type=simple | |
User=ivan | |
WorkingDirectory=/home/ivan/work/geoserver-2.18.1-bin/bin | |
ExecStart=/bin/bash /home/ivan/work/geoserver-2.18.1-bin/bin/startup.sh | |
Restart=always | |
RestartSec=5 |
#!/usr/bin/env bash | |
# change working directory to self-update dir | |
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | |
cd "$parent_path" | |
git pull && | |
composer install --optimize-autoloader --no-dev && | |
php artisan migrate && | |
php artisan route:clear && |
# Once you run the command, you’ll be prompted to enter the remote SSH user password. | |
# Once entered, you will be logged into the remote server, and the SSH tunnel will be established. | |
# link https://linuxize.com/post/how-to-setup-ssh-tunneling/ | |
ssh -L 127.0.0.1:5432:127.0.0.1:5432 -p 2211 [email protected] |
docker run --rm --interactive --tty \ | |
--volume $PWD:/app \ | |
--user $(id -u):$(id -g) \ | |
composer install --ignore-platform-reqs --no-scripts |
# get uuid | |
sudo blkid | |
sudo mkdir /disk2 | |
sudo chmod 1777 /disk2 | |
# At the end of this file add an entry like (where you replace 00000000-0000-0000-0000-000000000000 with the UUID the blkid command gave you): | |
# UUID=00000000-0000-0000-0000-000000000000 /disk2 ext4 defaults 0 2 | |
sudo edit /etc/fstab |
; Взято отсюда https://www.kobzarev.com/programming/var-dump-xdebug/ | |
; в разумных пределах | |
xdebug.var_display_max_depth = 10 | |
xdebug.var_display_max_children = 256 | |
xdebug.var_display_max_data = 1024 | |
; без лимитов | |
; (максимальный уровень вложенности 1023) | |
xdebug.var_display_max_depth = -1 | |
xdebug.var_display_max_children = -1 |
from intervals import IntInterval | |
from infinity import inf | |
def request_range(now, n): | |
if n < now/10: | |
return IntInterval.closed_open(now-(n+1)*10, now-n*10) | |
else: | |
return IntInterval([max(0, now-10), now]) | |
''' |