One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # | |
| LANG=en_US.UTF-8 | |
| LC_NUMERIC="be_BY.UTF-8" | |
| LC_TIME="ru_RU.UTF-8" | |
| LC_MONETARY="be_BY.UTF-8" | |
| LC_PAPER="be_BY.UTF-8" | |
| LC_NAME="be_BY.UTF-8" | |
| LC_ADDRESS="be_BY.UTF-8" | |
| LC_TELEPHONE="be_BY.UTF-8" | |
| LC_MEASUREMENT="be_BY.UTF-8" |
| # Disable touchpad when mouse is plugged | |
| # file: /etc/udev/rules.d/01-touchpad.rules | |
| ACTION=="add", ENV{ID_CLASS}="mouse",ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/salaros/.Xauthority", RUN+="/bin/sh -c 'xinput disable DELL0767:00\ 06CB:7E92\ Touchpad'" | |
| ACTION=="remove", ENV{ID_CLASS}="mouse", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/salaros/.Xauthority", RUN+="/bin/sh -c 'xinput enable DELL0767:00\ 06CB:7E92\ Touchpad'" |
| ## sudo apt install -qy ghostscript imagemagick | |
| mkdir -pv pages | |
| ## gs -dNOPAUSE -dBATCH -sDEVICE=jpeg -r96 -sOutputFile='pages/page-%02d.jpg' 'input.pdf' | |
| gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r96 -sOutputFile='pages/page-%02d.png' 'input.pdf' | |
| ## convert -adjoin pages/*.png 'output.pdf' | |
| convert -adjoin pages/*.png 'output.pdf' |
| find /home/salaros -regextype posix-egrep -iregex "(packages-|shaders_|Shader|repository-|_ca|GPU|v3-|.)+?cache" -type d -exec rm -rfv "{}" \; |
| :: Removes all superseded versions of every component in the component store. | |
| :: All existing service packs and updates cannot be uninstalled after this command is completed. | |
| :: This will not block the uninstallation of future service packs or updates. | |
| dism /online /Cleanup-Image /StartComponentCleanup /ResetBase | |
| :: Reduces the amount of space used by a Service Pack. | |
| :: The service pack cannot be uninstalled after this command is completed. | |
| dism /online /Cleanup-Image /SPSuperseded |
| # Minimal makefile for Sphinx documentation | |
| # | |
| # You can set these variables from the command line. | |
| SPHINXOPTS = | |
| SPHINXBUILD = sphinx-build | |
| SOURCEDIR = . | |
| BUILDDIR = _build | |
| ROOT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
| #!/bin/bash | |
| gnomeshell-extension-manage --install --version 3.26 --extension-id 15 # Alternate Alt+Tab (Windows 7 style with thumbnails) | |
| gnomeshell-extension-manage --install --version 3.26 --extension-id 7 # Removable Drive Menu | |
| gnomeshell-extension-manage --install --version 3.26 --extension-id 55 # 55/media-player-indicator | |
| # gnomeshell-extension-manage --install --extension-id 921 # 921/multi-monitors-add-on/ | |
| gnomeshell-extension-manage --install --extension-id 118 # 118/no-topleft-hot-corner/ | |
| gnomeshell-extension-manage --install --version 3.26 --extension-id 750 # 750/openweather/ | |
| gnomeshell-extension-manage --install --extension-id 1218 # 1218/printers/ | |
| gnomeshell-extension-manage --install --version 3.26 --extension-id 19 # 19/user-themes/ |
| #!/bin/bash | |
| PROGNAME=${0##*/} | |
| INPUT='' | |
| QUIET='0' | |
| NOSTATS='0' | |
| max_input_size=0 | |
| max_output_size=0 | |
| usage() |
| # TODO use a dedicated backup user, protect gzip file with password etc | |
| echo "/var/backups/all-databases.sql.gz { | |
| daily | |
| rotate 8 | |
| nocompress | |
| create 640 root adm | |
| postrotate | |
| mysqldump -uroot --all-databases > /var/backups/all-databases.sql --single-transaction | |
| gzip -9f /var/backups/all-databases.sql.sql | |
| endscript |