This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /home/salaros -regextype posix-egrep -iregex "(packages-|shaders_|Shader|repository-|_ca|GPU|v3-|.)+?cache" -type d -exec rm -rfv "{}" \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install -y \ | |
jbigkit-bin \ | |
imagemagick \ | |
ghostscript \ | |
inotify-tools | |
wget https://github.com/xundeenergie/ricoh-sp100/raw/master/ricoh-sp100_0.1.10_all.deb | |
sudo dpkg -i ricoh-sp100_0.1.10_all.deb && rm -rfv ricoh-sp100_0.1.10_all.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install libusb-0.1-4 libusb-0.1-4:i386 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.nautilus-desktop.nautilus-canvas-item { | |
color: #ffffff; | |
text-shadow: 1px 1px 2px rgba(25, 25, 25, 0.75), 1px 1px 2px rgba(25, 25, 25, 0.75); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just clean up incomplete images | |
[[ ! -z $(docker images --filter "dangling=true" -q --no-trunc) ]] && \ | |
docker rmi --force $(docker images --filter "dangling=true" -q --no-trunc) | |
#Remove unused containers | |
[[ ! -z $(docker ps -qa --no-trunc --filter "status=exited") ]] && \ | |
docker rm $(docker ps -qa --no-trunc --filter "status=exited") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Ms Office thumbnailer | |
# test Ubuntu distribution | |
DISTRO=$(lsb_release -is 2>/dev/null) | |
[ "${DISTRO}" != "Ubuntu" ] && { zenity --error --text="This automatic installation script is for Ubuntu only"; exit 1; } | |
# install tools | |
sudo apt-get -y install libfile-mimeinfo-perl gvfs-bin unoconv netpbm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@\.\*\\\/,#$%`|\)\(\]\[=]).{6,25} | |
* min 6 max 25 characters | |
* at least one lower-case letter | |
* at least one upper-case letter | |
* at least one digit | |
* at least one "special" character, among these: , . * / \ # $ % ` [ ] ) ( |