Сообщения

Сообщения за декабрь, 2018

intellij

if u wanna replace with capturing group (src: https://www.jetbrains.com/help/idea/tutorial-finding-and-replacing-text-using-regular-expressions.html) (.)+ this won't work but (.)? will work. yes, strange.

add user with ssh pub key unix

sudo mkdir /home/tomcat8 sudo groupadd tomcat8 sudo useradd -s /bin/sh -g tomcat8 -d /home/tomcat8 tomcat8 usermod -s /bin/sh tomcat8 change user cli usermod -a -G sudo tomcat8 groups groups username chmod 700 -R /home/user sudo chmod 700 /home/user/.ssh sudo chmod 600 /home/almas/.ssh/authorized_keys execute sudo cmd without passwd: sudo visudo In the bottom of the file, type the follow: username ALL=(ALL) NOPASSWD: ALL

игрища с digitalocean

sudo pam-auth-update --package face_authentication sudo rm /usr/share/pam-configs/face-authentication sudo apt-get remove pam-face-authentication src:  https://ubuntuforums.org/archive/index.php/t-1893148.html -------------------- https://www.digitalocean.com/community/tutorials/ubuntu-18-04-ru https://www.digitalocean.com/community/tutorials/mysql-ubuntu-18-04-ru https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands https://www.digitalocean.com/community/tutorials/how-to-secure-mysql-and-mariadb-databases-in-a-linux-vps https://rtfm.co.ua/digitalocean-znakomstvo-droplet-floating-ip-firewall/ https://www.digitalocean.com/community/tutorials/nginx-let-s-encrypt-ubuntu-18-04-ru https://devtidbits.com/2015/12/08/nginx-as-a-reverse-proxy-to-apache-tomcat/ ->> https://habr.com/post/318952/#podgotovim-nginx-k-polucheniyu-sertifikatov https://www.digitalocean.com/community/tutorials/nginx-ubuntu-18-04-ru ------------

jenkins tomcat spring boot

+++++++++++++++++++++++++ up & run++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++ apache-tomcat-8.5.24\bin\catalina.bat conf/tomcat-users.xml : role rolename="manager-gui"/role role rolename="manager-script"/role role rolename="manager-status"/role role rolename="manager-jmx"/role role rolename="standard"/role role rolename="admin-gui"/role user password="admin" roles="admin-gui, manager-gui,standard,manager-script,manager-status,manager-jmx" username="admin"/user http://localhost:8080/docs/appdev/ http://localhost:8080/manager/status http://localhost:8080/manager/html http://localhost:8080/manager/html/deploy http://localhost:8080/docs/appdev/ +++++++++++++++++++++++++ first of all check open port in firewall : sudo ufw status verbose src:  https://www.cyberciti.biz/faq/how-to-open-firewall-port-on-ubuntu-linux-12-04-14-04-lts/ /etc/