NO_PUBKEY

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY>

Restore postgresql db from dump

script.sh

 #!/bin/bash
 if ["$(whoami)" != "root"]; then
     echo "Start script as root root!"
     exit 1
 fi
 _DBNAME="$1"
 while [ -z "$_DBNAME" ]; do
     echo "Write DB name!"
     read _DBNAME
 done
 _DBUSER="$2"
 while [ -z "$_DBUSER" ]; do
     echo "Write DB username!"
     read _DBUSER
 done
 _PATH="$3"
 while [ -z "$_PATH" ]; do
     echo "Write path to DB dump file!"
     read _PATH
 done
 service postgresql restart
 su - postgres -c "dropdb $_DBNAME"
 su - postgres -c "createdb $_DBNAME -O $_DBUSER"
 su - postgres -c "psql $_DBNAME < $_PATH"

Update permissions – Laravel

script.sh

#!/bin/bash
if [ "$(whoami)" != "root" ]; then
     echo "Start script as root!"
     exit 1
fi
_PATH="$1"
while [ -z "$_PATH" ]; do
     echo "Write path to Laravel folder!"
     read _PATH
done
_USER="$2"
while [ -z "$_USER" ]; do
     echo "Write user name!"
     read _USER
done
chown -R $_USER:www-data $_PATH/./portal
find $_PATH/./ -type f -exec chmod 664 {} \;
find $_PATH/./ -type d -exec chmod 775 {} \;
chgrp -R www-data $_PATH/storage $_PATH/bootstrap/cache
chmod -R ug+rwx $_PATH/storage $_PATH/bootstrap/cache

Docker installation

# apt-get update
# apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
# curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
# apt-key fingerprint 0EBFCD88
# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
# apt-get update
# apt-get install docker-ce
# apt-get install docker-compose

USB Debian

# cp <file> <device> 
# dd if=<file> of=<device> bs=4M; sync

Triple monitor in LXDE – GTX650Ti

Monitors setting: vertical – horizontal – vertical

$ vim /home/user/.config/autostart/lxrandr-autostart.desktop
[Desktop Entry]
Type=Application
Name=Autostart LXRandR
Comment=Start xrand with LXRandR settings
Exec=sh -c 'xrandr --output VGA-0 --off --output DVI-D-0 --primary --mode 1920x1200 --pos 1200x0 --rotate normal --output DVI-D-1 --mode 1920x1200 --pos 3120x0 --rotate left --output HDMI-0 --mode 1920x1200 --pos 0x0 --rotate right'
OnlyShowIn=LXDE